/* ── Dessert Orders B2B – Order Table Styles ── */

.do-order-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  font-family: inherit;
}

/* Summary bar */
.do-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf6ec;
  border: 1px solid #f0c060;
  border-radius: 6px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 15px;
}
.do-min-info {
  font-size: 13px;
  color: #888;
}

/* Notice bar */
.do-notice-bar {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}
.do-notice-bar.error   { background: #fff0f0; border: 1px solid #e00; color: #c00; }
.do-notice-bar.success { background: #f0fff4; border: 1px solid #080; color: #060; }
.do-notice-bar.warning { background: #fffbf0; border: 1px solid #f0a500; color: #7a5000; }

/* Category title */
.do-cat-title {
  font-size: 24px;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #4E3C31;
  color: #4E3C31;
}

/* Product table */
.do-product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-radius: 8px;
  overflow: hidden;
}
.do-product-table thead th {
  background: #87674F;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .03em;
}
.do-product-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.do-product-table tbody tr:last-child { border-bottom: none; }
.do-product-table tbody tr:hover { background: #fafafa; }
.do-product-table td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 18px;
}

.do-product-table .col-img  { width: 220px; text-align: center; }
.do-product-table .col-img img { width: 200px; height: auto; object-fit: cover; }
.do-product-table .col-name {text-align: left;}
.do-product-table .col-name a { font-weight: 600; color: #4E3C31; text-decoration: none; text-transform: uppercase; }
.do-product-table .col-name a:hover { text-decoration: underline; }
.do-product-table .col-price { text-align: right; white-space: nowrap; font-weight: 600; }
.do-product-table .col-qty  { width: 140px; text-align: center; }
.do-qty-na { color: #bbb; font-size: 14px; }

/* Row highlight when qty > 0 */
.do-product-table tbody tr.do-has-qty {
  background: #fffbf0;
}
.do-product-table tbody tr.do-has-qty:hover {
  background: #fff7e0;
}

/* ── Dropdown quantità nella tabella ordini ── */
.do-qty-select {
  width: 100%;
  padding: 7px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  color: #333;
  transition: border-color .15s, box-shadow .15s;
}
.do-qty-select:focus {
  border-color: #4E3C31;
  outline: none;
  box-shadow: 0 0 0 2px rgba(44,62,80,.15);
}
/* Opzione "—" in grigio */
.do-qty-select option[value="0"] { color: #aaa; }
/* Select valorizzato: bordo evidenziato */
tr.do-has-qty .do-qty-select {
  border-color: #f0a500;
  background: #fffbf0;
  font-weight: 600;
}

/* Actions bar */
.do-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 20px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.do-total-recap { font-size: 15px; }
.do-btn-primary {
  background: #4E3C31 !important;
  color: #fff !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  border: 1px solid #4E3C31 !important;
  cursor: pointer;
  transition: background .2s;
}
.do-btn-primary:hover  { background: #f5efe6 !important; color: #4E3C31 !important;}
.do-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 680px) {
  .do-summary-bar { flex-direction: column; gap: 6px; text-align: center; }
  .do-actions     { flex-direction: column; gap: 14px; text-align: center; }
  .do-product-table .col-desc { display: none; }
  .do-product-table .col-img  { display: none; }
  .do-product-table .col-qty  { width: 80px; }
}