.bwg-grid-wrapper {
  width: 100%;
  overflow-x: auto;
}

.bwg-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
}

.bwg-day-cell {
  flex: 1 0 200px;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.bwg-day-header {
  background: #0073aa;
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: bold;
}

.bwg-day-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.bwg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  padding: 6px;
  transition: background 0.2s;
}

.bwg-item:hover {
  background: #e6f0ff;
}

.bwg-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  overflow: hidden;
}

.bwg-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bwg-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bwg-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2em;
}

.bwg-time {
  font-size: 12px;
  color: #666;
}

.bwg-no-items {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 8px 0;
}

/* ?? Mobile migliorato */
@media (max-width: 768px) {
  .bwg-grid {
    flex-wrap: wrap;
    gap: 12px;
  }
  .bwg-day-cell {
    flex: 1 0 100%;
  }
  .bwg-item {
    gap: 8px;
  }
  .bwg-thumb {
    width: 40px;
    height: 40px;
  }
  .bwg-title {
    font-size: 13px;
  }
}

/* Aggiungi queste regole alla fine del file CSS esistente */

/* Evidenziazione prodotto in evidenza */
.bwg-item.bwg-featured {
    position: relative;
    border: 2px solid #ff4444;
    background: #fff9f9;
    order: -1; /* Mette in primo piano nella visualizzazione flex */
}

.bwg-featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Migliora l'hover per gli elementi evidenziati */
.bwg-item.bwg-featured:hover {
    background: #ffe6e6;
    border-color: #ff0000;
}

/* Mobile: riduci le dimensioni del badge */
@media (max-width: 768px) {
    .bwg-featured-badge {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }
}