.milletporridges-section { 
  margin: 60px auto;
  max-width: 1200px;
}

.milletporridges-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.milletporridges-title {
  font-size: 24px;
  font-weight: 700;
}

.milletporridges-subtitle {
  font-size: 18px;
  color: #6b6b6b;
}

.milletporridges-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.milletporridges-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 30px;
  justify-content: start;    /* ✅ centers cards horizontally */
  align-items: stretch;
  padding: 0 20px;
  box-sizing: border-box;
}
.milletporridges-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.milletporridges-card:hover {
  transform: translateY(-5px);
}

.milletporridges-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.milletporridges-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 10px 15px;
}

.milletporridges-icons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.fav-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.milletporridges-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  margin: 4px 0 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.milletporridges-price {
  font-size: 16px;
  font-weight: 500;
  margin: 2px 0 2px 0;
}

.milletporridges-desc {
  color: #666;
  font-size: 13px;
  margin: 2px 0 4px 0;
  max-height: 36px; 
  overflow: hidden;
  text-overflow: ellipsis;
}

.milletporridges-nutrition {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.milletporridges-nutrition .nutri-labels,
.milletporridges-nutrition .nutri-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.milletporridges-nutrition .nutri-labels {
  color: #7c7c7c;
}

.milletporridges-nutrition .nutri-values {
  font-weight: 600;
  color: #3d8b40;
}

.menucaro-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; 
}

.custom-1 {
  color: #9a9a9a;
  font-size: 12px;
}

.add-btn-millet {
  background: #3c8b90;
  border: none;
  color: white;
  padding: 6px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn-millet:hover {
  background: #33767b;
}

/* -------- Medium Screens -------- */
@media (max-width: 1250px) {
  .milletporridges-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-left: 40px;
    margin-right: 40px;
  }
  .milletporridges-header-1 {
    margin-left: 40px;
  }
}

/* -------- Mobile View -------- */
@media (max-width: 760px) {
  .milletporridges-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 14px;
  }

  .milletporridges-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;       /* ✅ centers image and info */
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 10px;
    position: relative;
    overflow: visible;         /* ✅ prevents image cut-off */
  }

  .milletporridges-img {
    width: 45%;                /* ✅ balanced width for image */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    order: 2;
    flex-shrink: 0;
  }

  .milletporridges-title {
    font-size: 18px;
  }

  .milletporridges-subtitle {
    font-size: 15px;
  }

  .milletporridges-info {
    flex: 1;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    order: 1;
  }

  .milletporridges-name {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 3px;
  }

  .milletporridges-price {
    font-size: 15px;
    font-weight: 500;
    color: #3d8b40;
    margin-bottom: 4px;
  }

  .milletporridges-desc {
    font-size: 11px;
    color: #777;
    margin-bottom: 6px;
    /* line-height: 1.3; */
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .milletporridges-nutrition {
    display: flex;
    flex-direction: column;
    gap: 4px; /* space between labels and values */
    margin-bottom: 6px;
  }

  .milletporridges-nutrition .nutri-labels,
  .milletporridges-nutrition .nutri-values {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
  }

  .milletporridges-nutrition .nutri-labels {
    color: #777;
  }

  .milletporridges-nutrition .nutri-values {
    font-weight: 600;
    color: #3d8b40;
  }

  .custom-1 {
    font-size: 9px;
    color: #999;
  }

  .add-btn-millet {
    background: #3c8b90;
    border: none;
    color: #fff;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
  }

  .add-btn-millet:hover {
    background: #33767b;
  }

  .milletporridges-icons-row {
    display: none;
  }
}

/* -------- Toggle button reset -------- */
.milletporridges-header button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  font-size: 22px;
  color: inherit;
}

/* -------- 393px and below -------- */
@media (max-width: 400px) {
  .milletporridges-card {
    padding: 0px;
    gap: 6px;
  }

  .milletporridges-img {
    width: 48%;         /* a little smaller to give text more room */
  }

  .milletporridges-info {
    padding-right: 6px;
  }

  .milletporridges-name {
    font-size: 11px;
  }

  .milletporridges-price {
    font-size: 12px;
  }

  .milletporridges-desc {
    font-size: 9px;
  }

  .milletporridges-nutrition {
    gap: 3px;
    margin-bottom: 4px;
  }

  .milletporridges-nutrition .nutri-labels,
  .milletporridges-nutrition .nutri-values {
    font-size: 7px;
  }

  .custom-1 {
    font-size: 9px;
  }

  .add-btn-millet {
    font-size: 7px;
    padding: 3px 12px;
  }
}
