/* =========================
   MVD Reserveren Automaat
   v0.3.0 (4 shortcodes)
   Clean CSS (no duplicates, no hotfixes)
   ========================= */

/* ---------- Tokens ---------- */
:root{
  --mvd-ink: #0B1220;
  --mvd-blue: #002B66;
  --mvd-bg: #DCE9FF;
  --mvd-orange: #FF761D;
  --mvd-divider: #BFD4FF;
  --mvd-grey: #8A94A6;
  --mvd-radius: 16px;
}

/* ---------- Spacing between shortcode blocks ---------- */
.mvd-reserveer{
  margin: 0;
}
.mvd-reserveer + .mvd-reserveer{
  margin-top: 18px;
}
.mvd-reserveer-header{
  margin-bottom: 10px;
}
.mvd-reserveer-header + .mvd-reserveer{
  margin-top: 12px;
}

/* ---------- Base / typography (scoped) ---------- */
.mvd-reserveer, .mvd-reserveer *{
  font-family: "League Spartan", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--mvd-ink);
  box-sizing: border-box;
}

/* ---------- Header block ---------- */
.mvd-reserveer-header{
  background: var(--mvd-blue);
  border: 2px solid var(--mvd-bg); /* border same as page background */
  border-radius: 14px;
  padding: 16px 18px;
}
.mvd-reserveer-header,
.mvd-reserveer-header *{
  color: #fff;
}
.mvd-reserveer-header h2{
  margin: 0 0 8px 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .2px;
}
.mvd-reserveer-header .mvd-meta{
  margin: 0 0 6px 0;
  opacity: .9;
  font-size: 15px;
  line-height: 1.35;
}
.mvd-reserveer-header .mvd-status-open{
  color: var(--mvd-orange);
  font-weight: 700;
}
.mvd-reserveer-header .mvd-status-closed{
  opacity: .95;
  font-weight: 700;
}

/* ---------- Product grid ---------- */
.mvd-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  gap: 12px;
  justify-content: center;     /* centreer de hele tegelset */
  align-items: start;
}
@media (max-width: 900px){
  .mvd-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .mvd-grid{ grid-template-columns: 1fr; }
}

/* ---------- Product tile ---------- */
.mvd-tile{
  background: #fff;
  border: 2px solid var(--mvd-ink);
  border-radius: var(--mvd-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 420px;
  width: 200px;
  max-width: 200px;
}
@media (max-width: 900px){
  .mvd-tile{ height: auto; }
}

.mvd-tile-img{
  width: 150px;
  height: 150px;
  background: rgba(11,18,32,.04);
  border-radius: 12px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  margin: 0 auto;
  align-self: center;
  object-position: center center;
}

/* afbeelding altijd “cover” in 150x150 */
.mvd-tile-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  margin-left: auto;
  margin-right: auto;
}

.mvd-tile-title{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.mvd-tile-desc{
  opacity: .9;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.mvd-tile-price{
  margin-top: auto;
  font-weight: 800;
  font-size: 18px;
}
.mvd-tile-price small,
.mvd-tile-price .woocommerce-Price-taxLabel{
  font-size: 12px;
  opacity: .7;
  font-weight: 400;
}

/* Product tile button: transparent text button with > */
.mvd-tile-actions{
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}
.mvd-tile-add{
  border: none;
  background: transparent;
  padding: 0;
  text-decoration: none;
  color: var(--mvd-ink);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: none;
}
.mvd-tile-add::after{
  content: " >";
}
.mvd-tile-add:hover{
  color: var(--mvd-orange);
}
.mvd-tile-add.is-disabled{
  opacity: .4;
  pointer-events: none;
}

/* ---------- Cart block ---------- */
.mvd-cart{
  background: #fff;
  border: 2px solid var(--mvd-orange); /* orange border as requested */
  border-radius: var(--mvd-radius);
  padding: 18px;
}

.mvd-cart-title{
  text-align: center;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 14px 0;
}

.mvd-cart-lines{
  display: flex;
  flex-direction: column;
  gap: 0; /* dividers handle separation */
  margin-bottom: 12px;
}

.mvd-cart-divider{
  border-top: 1px solid var(--mvd-divider);
  margin: 12px 0;
}

.mvd-cart-line{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mvd-cart-left{ min-width: 0; }

.mvd-cart-name{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
}

.mvd-cart-name-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mvd-cart-line-meta{
  opacity: .85;
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Qty controls (neutral, subtle) */
.mvd-qty{
  border: 1px solid var(--mvd-divider);
  border-radius: 10px;
  padding: 2px 8px;
  background: transparent;
  color: var(--mvd-ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}

.mvd-qty:hover{
  border-color: var(--mvd-ink);
  background: transparent;
  color: var(--mvd-ink);
}

.mvd-qty:active,
.mvd-qty:focus{
  background: transparent;
  color: var(--mvd-ink);
  outline: none;
  box-shadow: none;
}

.mvd-qty-val{
  display: inline-block;
  min-width: 16px;
  text-align: center;
  font-weight: 700;
}

.mvd-qty-unit{
  opacity: .75;
}

/* Remove (SVG only) – subtle grey, inline after p/st */
.mvd-cart-remove-subtle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 2px;
  opacity: .55;
  text-decoration: none;
}
.mvd-cart-remove-subtle .mvd-trash{
  width: 12px;
  height: 12px;
  fill: var(--mvd-grey);
  display: block;
}
.mvd-cart-remove-subtle:hover{
  opacity: 1;
}
.mvd-cart-remove-subtle:hover .mvd-trash{
  fill: var(--mvd-orange);
}

/* Price right */
.mvd-cart-line-price{
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

/* Total row */
.mvd-cart-total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}
.mvd-cart-total-label{
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.mvd-cart-total-amount{
  font-weight: 800;
  font-size: 18px;
}

/* Footer: extra space before CTA + CTA full width */
.mvd-cart-footer{
  margin-top: 18px;              /* more space between total and button */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* CTA: orange filled, white text, CAPS */
.mvd-checkout{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--mvd-orange);
  border: 2px solid var(--mvd-orange);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.mvd-checkout:hover{
  background: #fff;
  color: var(--mvd-orange);
}