/*
 * Mijn lijst — front-end styles.
 *
 * Self-contained: uses CSS custom properties so it can be re-themed without
 * touching the markup. All classes are prefixed `ml-` to avoid collisions
 * with the theme.
 */

.ml-wrap {
  --ml-primary: #4b0082;
  --ml-primary-50: #f5f0ff;
  /* --ml-cta: #e36a2c; */
  --ml-cta: #B8952A;
  /* --ml-cta-hover: #cc5d23; */
  --ml-cta-hover: #c4a038;
  --ml-success: #16a34a;
  --ml-warning: #e29d1e;
  --ml-danger: #dc2626;
  --ml-text: #111827;
  --ml-text-muted: #6b7280;
  --ml-border: #e4e4e7;
  --ml-border-strong: #d4d4d8;
  --ml-bg: #ffffff;
  --ml-bg-soft: #f9fafb;
  --ml-radius-sm: 8px;
  --ml-radius-md: 12px;
  --ml-radius-pill: 999px;
  --ml-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --ml-transition: 0.18s ease-in-out;

  /* max-width: 1280px; */
  /* margin: 0 auto; */
  /* padding: 24px 16px 64px; */
  /* color: var(--ml-text); */
  /* font-size: 14px; */
  /* line-height: 1.4; */
  padding-block: 16px 128px;
}

/* ----------------------------------------------------------------- */
/* Toolbar                                                            */
/* ----------------------------------------------------------------- */

.ml-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #231014;
  color: rgba(255, 255, 255, 0.9);
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--ml-shadow-md);
  flex-wrap: wrap;
  margin-bottom: calc(16px + 24px);
  justify-content: space-between;
}

.ml-toolbar__group {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  width: fit-content;
}

/* .ml-toolbar__group--start {
	flex: 1 1 auto;
  }
  .ml-toolbar__group--end {
	flex: 0 0 auto;
  } */

.ml-toolbar__divider {
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

.ml-toolbar__select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

/* Custom checkbox — shared between the toolbar select-all and per-row
   checkboxes. Purple-outlined rounded square that stays white in every
   state; the tick and the indeterminate bar are also purple. */
.ml-toolbar__select-all input[type="checkbox"],
.ml-row__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 2.5px solid #D2ADB6;
  border-radius: 6px;
  /* background: #fff; */
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--ml-transition),
    box-shadow var(--ml-transition);
}

/* .ml-toolbar__select-all input[type="checkbox"]:hover,
.ml-row__check input[type="checkbox"]:hover {
  background: var(--ml-primary-50);
} */

.ml-toolbar__select-all input[type="checkbox"]:focus-visible,
.ml-row__check input[type="checkbox"]:focus-visible {
  outline: none;
  /* box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.25); */
  box-shadow: none;
}

/* Checkmark — drawn with two borders rotated 45deg.
   Color is overridden per-context below (rows = dark, toolbar = light). */
.ml-toolbar__select-all input[type="checkbox"]:checked::after,
.ml-row__check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 6px;
  height: 11px;
  border: solid #D2ADB6;
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}

/* Indeterminate — horizontal bar.
   Color is overridden per-context below. */
.ml-toolbar__select-all input[type="checkbox"]:indeterminate::after,
.ml-row__check input[type="checkbox"]:indeterminate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  background: #8C3E51;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

/* Toolbar override — lighter purple so it reads on the dark toolbar bg. */
.ml-toolbar__select-all input[type="checkbox"] {
  border-color: #D2ADB6;
}
.ml-toolbar__select-all input[type="checkbox"]:checked::after {
  border-color: #D2ADB6;
}
.ml-toolbar__select-all input[type="checkbox"]:indeterminate::after {
  background: #D2ADB6;
}

.ml-toolbar__select-all input[type="checkbox"]:disabled,
.ml-row__check input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ml-toolbar__count {
  color: rgba(255, 255, 255, 0.5);

  /* Desktop/Lead */
  font-family: "Miranda Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
}

.ml-toolbar__filter-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.ml-toolbar__cat-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.9);
  font-family: "Miranda Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
}
/* --- */
.ml-toolbar__filter-form {
  width: fit-content;
  flex: 0 0 auto;
}

.ml-toolbar__cat-wrap {
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
}

.ml-toolbar__cat {
  width: auto;
  min-width: 0;
  max-width: max-content;
  display: inline-block;
}
/* --- */
.ml-toolbar__cat-wrap i {
  color: #D2ADB6;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
}

.ml-toolbar__cat:focus,
.ml-toolbar__cat:focus-visible {
  outline: none;
  box-shadow: none;
}

.ml-toolbar__cat {
  appearance: none;
  background: transparent;
  color: #fff;
  border: none;
  padding: 6px 0;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.ml-toolbar__cat option {
  color: var(--ml-text);
  background: #fff;
}

.ml-toolbar__cat-icon {
  pointer-events: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.ml-toolbar__filter-submit {
  display: none;
}

.ml-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  /* padding: 8px 12px; */
  padding: 0;
  font: inherit;
  cursor: pointer;
  border-radius: var(--ml-radius-pill);
  transition:
    background var(--ml-transition),
    color var(--ml-transition),
    opacity var(--ml-transition);

  /* Desktop/Lead */
  font-family: "Miranda Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
}
.ml-toolbar__btn i:not(.cta i) {
  color: #D2ADB6;
  /* Icons/16px */
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
}

.ml-toolbar__btn:not(.cta):hover:not(:disabled) {
  /* background: rgba(255, 255, 255, 0.1); */
  color: #D2ADB6;
}

.ml-toolbar__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ml-toolbar__btn--cta {
  background: var(--ml-cta);
  color: #fff;
  padding: 10px 20px;
  font-weight: 600;
}

.ml-toolbar__btn--cta:hover:not(:disabled) {
  background: var(--ml-cta-hover);
}

.ml-toolbar__btn--cta.is-loading {
  opacity: 0.7;
  cursor: progress;
}

/* ----------------------------------------------------------------- */
/* List rows                                                          */
/* ----------------------------------------------------------------- */

.ml-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ml-row {
  display: grid;
  grid-template-columns:
    32px 100px minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1.1fr)
    auto;
  grid-template-areas: "check thumb meta stock price actions";
  align-items: center;
  gap: 16px;
  background: var(--ml-bg);
  border-top: 1px solid #e4e4e7;
  padding: 36px 24px;
}

.ml-row__check {
  grid-area: check;
}
.ml-row__thumb {
  grid-area: thumb;
}
.ml-row__meta {
  grid-area: meta;
}
.ml-row__stock {
  grid-area: stock;
}
.ml-row__price {
  grid-area: price;
}
.ml-row > .actions {
  grid-area: actions;
  justify-self: end;
}

.ml-row.is-leaving {
  opacity: 0;
  transform: translateX(20px);
}

.ml-row__check {
  display: flex;
  justify-content: center;
}

.ml-row__thumb {
  display: block;
  min-width: 100px;
  min-height: 100px;
  width: 100px;
  height: 100px;
  overflow: hidden;
  /* border-radius: var(--ml-radius-sm); */
  /* background: var(--ml-bg-soft); */

  /* --- */
  background: #fff;
  border: 1px solid #ede0ff;
  border-radius: 8px;
  padding: 12px;
}

.ml-row__thumb img,
.ml-row__thumb .ml-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ml-row__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ml-row__title {
  font-weight: 600;
  color: var(--ml-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #18181b !important;
}

.ml-row__title:hover {
  color: var(--ml-primary);
}

.ml-row__meta .product-info {
  display: unset;
  padding: 0;
  margin-top: 4px;
}
.ml-row__meta .product-info .info__column {
  /* row-gap: 8px; */
  row-gap: 2px;
}

/*
 * Stock cell on a mijn-lijst row.
 *
 * The dot + label markup itself is produced by `wc_get_stock_html()` and
 * the sitewide `woocommerce_get_stock_html` filter (theme functions.php),
 * which outputs `.product-stock .product-stock--{green|amber|red}` with
 * a `.product-stock__dot` and `.product-stock__label`.
 *
 * This wrapper just hosts the grid placement on the row.
 */
.ml-row__stock {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ml-row__stock .product-stock {
  font-size: 15px;
}

.ml-row__price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.ml-row__price-amount {
  display: inline-block;
}

/* .ml-row__price-amount {
	font-weight: 600;
	font-size: 14px;
	color: var(--ml-text);
  } */

.ml-row__price-amount .woocommerce-Price-amount,
.ml-row__price-amount bdi {
  color: inherit;
  font-weight: inherit;
}

.ml-row__price-tax {
  /* font-size: 11px; */
  /* color: var(--ml-text-muted); */
  color: #a1a1aa;
  /* Desktop/Small */
  font-family: var(--fonts-body, "Miranda Sans");
  font-family: "Miranda Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.4px;
}

/* Quantity stepper */
/* .ml-row__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ml-border-strong);
  border-radius: var(--ml-radius-pill);
  overflow: hidden;
  background: var(--ml-bg);
} */

/* .ml-row__qty-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ml-text);
  transition: background var(--ml-transition);
} */

/* .ml-row__qty-btn:hover {
  background: var(--ml-bg-soft);
} */

/* .ml-row__qty-input {
  width: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  color: var(--ml-text);
  padding: 0;
  -moz-appearance: textfield;
} *

/* .ml-row__qty-input::-webkit-outer-spin-button,
.ml-row__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
} */

/* .ml-row__qty-input:focus {
  outline: none;
} */

.ml-row__qty-input {
  max-width: 50px;
}

/* Add-to-cart icon button (row) */
.ml-row__add {
  width: 38px;
  height: 38px;
  border-radius: 1000px;
  /* background: var(--ml-cta); */
  background: #B8952A;
  color: #0A0A0A;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--ml-transition),
    opacity var(--ml-transition),
    transform var(--ml-transition);
  flex-shrink: 0;
  /* --- */
  /* Icons/14px */
  font-size: 14px;
  font-style: normal;
  /* font-weight: 900; */
  line-height: 18px;
  letter-spacing: 0.4px;
}
@media screen and (max-width: 1200px) {
  .ml-row__add {
    width: fit-content;
    padding: 10px 20px;
    font-size: 16px;
    height: 44px;
  }
  .ml-row__add span {
    margin-left: 8px;
  }
}
.actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ml-row__add:hover:not(:disabled):not(.is-disabled) {
  background: #c4a038;
  transform: translateY(-1px);
}

.ml-row__add:disabled,
.ml-row__add.is-disabled {
  /* background: var(--ml-border-strong); */
  background: #d4d4d8;
  cursor: not-allowed;
  opacity: 0.7;
}

.ml-row__add.is-loading {
  opacity: 0.6;
  cursor: progress;
}

/* Remove (X) */
.ml-row__remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #a1a1aa;
  border: 1px solid #a1a1aa;
  background: var(--ml-bg);
  color: var(--ml-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color var(--ml-transition),
    border-color var(--ml-transition);
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
  letter-spacing: 0.4px;
}

@media screen and (max-width: 768px) {
  .ml-row__remove {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.ml-row__remove:hover {
  color: var(--ml-danger);
  border-color: var(--ml-danger);
}

.ml-row.is-out-of-stock .ml-row__thumb img,
.ml-row.is-out-of-stock .ml-row__title {
  opacity: 0.85;
}

/* ----------------------------------------------------------------- */
/* No results (filter returns no rows)                                */
/* ----------------------------------------------------------------- */

.ml-no-results {
  background: var(--ml-bg);
  border: 1px dashed var(--ml-border);
  border-radius: var(--ml-radius-md);
  padding: 32px;
  text-align: center;
  color: var(--ml-text-muted);
}

.ml-no-results__reset {
  display: inline-block;
  margin-top: 8px;
  color: var(--ml-primary);
  text-decoration: underline;
}

/* ----------------------------------------------------------------- */
/* Pagination                                                         */
/* ----------------------------------------------------------------- */
/* 
.ml-pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.ml-pagination__page,
.ml-pagination__nav {
  width: 35px;
  height: 35px;
  min-width: 35px;
  min-height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ml-primary-50);
  color: var(--ml-primary);
  text-decoration: none;
  font-weight: 500;
  transition:
    background var(--ml-transition),
    color var(--ml-transition);
}

.ml-pagination__page:hover,
.ml-pagination__nav:hover {
  background: var(--ml-primary);
  color: #fff;
}

.ml-pagination__page.is-active {
  background: var(--ml-primary);
  color: #fff;
}

.ml-pagination__nav.is-disabled {
  background: transparent;
  color: var(--ml-text-muted);
  pointer-events: none;
  opacity: 0.5;
} */

/* ----------------------------------------------------------------- */
/* Single-product toggle button                                       */
/* ----------------------------------------------------------------- */

.ml-add-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #d4d4d8;
  color: #111827;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  margin: 12px 0;
  transition:
    border-color 0.18s ease-in-out,
    color 0.18s ease-in-out,
    background 0.18s ease-in-out;
}
.ml-add-to-list i {
  font-weight: bold;
}
.ml-add-to-list:hover {
  border-color: #4b0082;
  color: #4b0082;
}

.ml-add-to-list[data-state="added"] {
  border-color: #4b0082;
  color: #4b0082;
  background: #f5f0ff;
}

.ml-add-to-list.is-loading {
  opacity: 0.6;
  cursor: progress;
}

/* Variable products: as a safety net, keep the disabled visual when WC
   shows the variation wrap but variation_id is still 0 (invalid
   combination). The button is otherwise hidden along with the wrap. */
.ml-add-to-list.is-disabled,
.ml-add-to-list[disabled],
.ml-add-to-list[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Out-of-stock placement: when relocated into the single-product
   `.product-info` 2-column grid, span both columns and sit on its own row
   below the info items. */
.product-info > .ml-add-to-list[data-ml-oos] {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

/* ----------------------------------------------------------------- */
/* Popup / dialog (notifications + confirmations)                     */
/* ----------------------------------------------------------------- */

body.ml-dialog-open {
  overflow: hidden;
}

.ml-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.22s ease-in-out;
}
@media screen and (max-width: 767px) {
  .ml-dialog-backdrop {
    /* 	Anchor popups to the bottom of the viewport ("in the footer"). */
    align-items: flex-end;
    padding: 16px 16px 24px;
  }
}

.ml-dialog-backdrop.is-visible {
  opacity: 1;
}

.ml-dialog {
  position: relative;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(12px) scale(0.98);
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease-in-out;
  opacity: 0;
}
@media screen and (max-width: 767px) {
  .ml-dialog {
    /* 		  Slide up from below on entry. */
    transform: translateY(32px);
  }
}

.ml-dialog-backdrop.is-visible .ml-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ml-dialog-backdrop.is-visible .ml-dialog {
  transform: translateY(0);
  opacity: 1;
}

.ml-dialog__title {
  color: #0a0a0a;
  /* Desktop/H3 */
  font-family: "Cormorant", sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.4px;
}

.ml-dialog__close {
  appearance: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease-in-out,
    color 0.18s ease-in-out;
  flex-shrink: 0;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
}

.ml-dialog__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.ml-dialog__body {
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 20px;
  font-family: "Miranda Sans", sans-serif;
}

.ml-dialog__actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

/* Popup action buttons render with the global .button-009 markup; the
   .ml-dialog__btn / .ml-dialog__btn--<variant> classes are kept as
   lightweight hooks for any dialog-specific overrides (e.g. mobile
   full-width below). All visual styling lives on .button-009. */
.ml-dialog__actions .button-009 {
  margin-top: 0;
}

/* Destructive confirm actions (Verwijderen / Leegmaken). */
.ml-dialog__actions .ml-dialog__btn--danger.button-009 {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}

.ml-dialog__actions .ml-dialog__btn--danger.button-009:hover,
.ml-dialog__actions .ml-dialog__btn--danger.button-009:focus-visible {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}

/* Centered "notification" layout — used whenever an icon/type is set
   (e.g. added-to-cart, added-to-list, errors, info). The confirm dialog
   stays in the classic left-aligned layout. */
.ml-dialog--centered {
  text-align: center;
  padding: 36px 28px 24px;
}

.ml-dialog--centered .ml-dialog__title {
  padding-right: 0;
}

.ml-dialog--centered .ml-dialog__actions {
  justify-content: center;
}

.ml-dialog__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  line-height: 1;
}

.ml-dialog__icon--success {
  background: #f9f6f7;
  color: #5f2a37;
}

.ml-dialog__icon--error {
  background: #fee2e2;
  color: #dc2626;
}

.ml-dialog__icon--info {
  background: #ede0ff;
  color: #5e1fa8;
}

@media (max-width: 480px) {
  .ml-dialog {
    padding: 24px 20px 20px;
  }
  .ml-dialog--centered {
    padding: 32px 20px 20px;
  }
  .ml-dialog__actions {
    flex-direction: column-reverse;
  }
  .ml-dialog__actions .button-009 {
    width: 100%;
    justify-items: center;
  }
  .ml-dialog__actions .button-009 .button-009__inner {
    width: max-content;
  }
}

/* ----------------------------------------------------------------- */
/* Login required notice (rare fallback if redirect can't happen)     */
/* ----------------------------------------------------------------- */

.ml-login-required {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
}

/* ----------------------------------------------------------------- */
/* Responsive                                                         */
/* ----------------------------------------------------------------- */

/* Large tablet / small desktop — wrap stock+price+actions to a second
	 row so the meta column has room to breathe. */
@media (max-width: 1199px) {
  .ml-row {
    grid-template-columns: 32px 100px minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas:
      "check thumb meta    meta"
      "check thumb stock   price"
      "check thumb actions actions";
    row-gap: 14px;
    padding: 28px 24px;
  }
  .ml-row__thumb {
    align-self: start;
  }
  .ml-row__check {
    align-self: start;
    align-items: center;
    height: 100px;
    padding-top: 0;
  }
  .ml-row__price {
    justify-content: flex-end;
  }
  .ml-row > .actions {
    justify-self: end;
  }
}

/* Tablet — drop to a 3-column layout: check | thumb | stacked content. */
@media (max-width: 1023px) {
  .ml-row {
    grid-template-columns: 32px 100px minmax(0, 1fr);
    grid-template-areas:
      "check thumb meta"
      "check thumb stock"
      "check thumb price"
      "check thumb actions";
    row-gap: 10px;
    padding: 24px 20px;
  }
  .ml-row__price {
    justify-content: flex-start;
  }
  .ml-row > .actions {
    justify-self: start;
  }
}

/* Toolbar — collapse stacked layout from tablet downward. */
@media (max-width: 991px) {
  .ml-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    border-radius: var(--ml-radius-md);
  }
  .ml-toolbar__group {
    width: 100%;
    gap: 12px 16px;
  }
  .ml-toolbar__group--start {
    flex-wrap: wrap;
  }
  .ml-toolbar__divider {
    display: none;
  }
  .ml-toolbar__btn--cta {
    width: 100%;
    justify-content: center;
  }
}

/* Phone — switch to a card-like stack so each row reads top-to-bottom. */
@media (max-width: 767px) {
  .ml-wrap {
    padding-block: 12px 96px;
  }
  .ml-row {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "check thumb"
      "meta meta"
      "stock stock"
      "price price"
      "actions actions";
    row-gap: 12px;
    column-gap: 12px;
    padding: 24px 16px;
  }
  .ml-row__check {
    align-self: start;
    align-items: center;
    height: 96px;
    padding-top: 0;
  }
  .ml-row__thumb {
    justify-self: start;
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
  }
  .ml-row__title {
    font-size: 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .ml-row__price {
    justify-content: flex-start;
  }
  .ml-row > .actions {
    justify-self: stretch;
    /* width: 100%; */
    width: fit-content;
    justify-content: space-between;
  }

  /* Toolbar dialog-y feel on small screens. */
  .ml-toolbar {
    padding: 16px 20px;
  }
  /* .ml-toolbar__filter-form,
  .ml-toolbar__cat-wrap {
    width: 100%;
  } */
  .ml-toolbar__cat {
    width: 100%;
  }
  .ml-toolbar__btn {
    flex: 1 1 auto;
    /* justify-content: center; */
  }

  /* Pagination tighter spacing. */
  .ml-pagination {
    margin-top: 48px;
    gap: 6px;
  }
}

/* Small phone — squeeze further but keep everything tappable. */
@media (max-width: 480px) {
  .ml-row {
    grid-template-columns: 28px 1fr;
    padding: 20px 12px;
    column-gap: 10px;
  }
  .ml-row__thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    padding: 6px;
  }
  .ml-row__check {
    height: 80px;
  }
  .ml-row__title {
    font-size: 15px;
  }
  .ml-row__stock .product-stock,
  .ml-row__stock .product-stock__label {
    font-size: 14px;
    line-height: 20px;
  }
  .ml-row__price-amount {
    font-size: 16px;
  }
  /* .ml-row__qty {
    flex-shrink: 0;
  } */
  /* .ml-row__qty-btn {
    width: 28px;
    height: 28px;
  } */
  /* .ml-row__qty-input {
    width: 32px;
  } */
  .ml-row > .actions {
    gap: 8px;
  }

  .ml-toolbar {
    padding: 14px 16px;
    gap: 12px;
  }
  .ml-toolbar__group {
    gap: 10px;
  }
  .ml-toolbar__btn span {
    display: none; /* icon-only buttons on the very smallest screens */
  }
  .ml-toolbar__btn--cta span {
    display: inline; /* keep the main CTA labelled */
  }

  .ml-pagination__page,
  .ml-pagination__nav {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 13px;
  }
}

/* --- */
/* --- */
General WooCommerce quantity styling .woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ml-border-strong, #d4d4d8);
  border-radius: var(--ml-radius-pill, 999px);
  overflow: hidden;
  background: var(--ml-bg, #fff);
  /* --- */
  padding: 8px 16px;
}

/* ==========================================================================
   Topbar nav badge — count of items on the user's "Mijn lijst".
   Injected by JS into every link pointing at the configured list page.
   ========================================================================== */

a:has(> .ml-nav-badge) {
  position: relative;
  overflow: visible;
}

.ml-nav-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  transform: translate(16%, -16%);

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: #aa4b62;
  border: 2px solid #fff;
  border-radius: 999px;

  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.ml-nav-badge.is-hidden {
  opacity: 0 !important;
  transform: translate(35%, -35%) scale(0.4);
  pointer-events: none;
}
.custom-dashboard-card .ml-nav-badge {
  display: none !important;
}

/* Visually-hidden helper for the SR-only count description. Mirrors the
   Bootstrap class so it also works when Bootstrap's utilities are absent. */
.ml-nav-badge-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
