/* cart.css — Dawn single-column cart (Shopify-inspired) */
/* Layout: stacked single column, 680px centered */
.vl-cart-layout,
.vl-checkout-layout,
.vl-cart-empty {
  width: 100%; max-width: 680px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
  box-sizing: border-box;
}
.vl-cart-layout {
  padding-top: 40px; padding-bottom: 60px;
  display: flex; flex-direction: column; gap: 0;
}

.vl-commerce-hero {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 5vw, 52px);
  text-align: center;
}
.vl-commerce-hero__eyebrow {
  margin: 0;
  color: var(--accent-action);
  font-family: var(--font-h);
  font-size: var(--fs-badge);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vl-commerce-hero__title {
  margin: .55rem 0 .6rem;
  color: var(--ink);
  font-family: var(--font-h);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}
.vl-commerce-hero__copy {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.vl-page-logo {
  margin: 40px auto 8px; text-align: center;
  font-family: var(--font-h); font-size: var(--fs-h3); font-weight: 700;
  color: var(--ink); letter-spacing: .07em; text-transform: uppercase;
}
.vl-step-indicator {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-bottom: 36px; font-family: var(--font-h); font-size: var(--fs-small);
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.vl-step { color: var(--border-strong); }
.vl-step--active { color: var(--ink); }
.vl-step__arrow { margin: 0 2px; color: var(--border-strong); font-weight: 400; }

/* Main table area — full width */
.vl-cart-main { width: 100%; }

/* Totals — full width, no sticky, no sidebar card */
.vl-cart-totals {
  width: 100%; position: static; background: none;
  border-radius: 0; padding: 0; height: auto;
  margin-top: 24px; padding-top: 20px;
  border-top: 2px solid var(--border-strong);
}
.vl-cart-totals__heading {
  margin: 0 0 14px; color: var(--ink);
  font-family: var(--font-h); font-size: var(--fs-h3); font-weight: 700;
}
.vl-cart-totals__rows { margin-bottom: 22px; }
.vl-cart-totals__row {
  display: flex; justify-content: space-between; gap: 12px; padding: 5px 0;
  font-size: var(--fs-small); color: var(--text);
}
.vl-cart-totals__row > :last-child { font-weight: 600; }
.vl-cart-totals__row--total {
  margin-top: 9px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--ink); font-family: var(--font-h); font-size: var(--fs-h2); font-weight: 700;
}
.vl-cart-totals__shipping-hint {
  font-size: var(--fs-small); color: var(--accent); padding: 4px 0 12px;
}
.vl-cart-totals .vl-btn { margin-top: 16px; }
.vl-cart-totals .vl-btn--accent { width: 100%; }
.vl-cart-totals .vl-btn--accent {
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-action); color: var(--card);
}
.vl-cart-totals .vl-btn--accent:hover { background: var(--accent-hover); }
.vl-cart-collaterals:empty { display: none; }
.vl-cart-totals__shipping table,
.vl-cart-totals__shipping tbody { display: block; width: 100%; }
.vl-cart-totals__shipping tr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  padding: 5px 0; color: var(--text); font-size: var(--fs-small);
}
.vl-cart-totals__shipping th { text-align: left; font-size: 0; }
.vl-cart-totals__shipping th::before { content: 'Livraison'; font-size: var(--fs-small); font-weight: 400; }
.vl-cart-totals__shipping td { text-align: right; }
.vl-cart-totals__shipping td .amount { font-weight: 600; }
.vl-cart-totals__shipping .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.vl-cart-totals__shipping .woocommerce-shipping-methods li { min-height: 24px; }
.vl-cart-totals__shipping .woocommerce-shipping-destination { margin: 4px 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.vl-cart-totals__proceed { margin-top: 22px; }
.vl-cart-totals__proceed .checkout-button {
  width: 100%; min-height: 46px; padding: 11px 18px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-action); color: #fff; font-family: var(--font-h);
  font-size: var(--fs-btn); font-weight: 700; letter-spacing: .04em;
  text-align: center; text-transform: uppercase; text-decoration: none;
}
.vl-cart-totals__proceed .checkout-button:hover { background: var(--accent-hover); color: #fff; }

/* WhatsApp order button */
.vl-cart-totals .vl-btn--wa {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 8px;
  padding: 11px 18px;
  min-height: 46px;
  background: #198c48;
  color: #fff;
  font-family: var(--font-h);
  font-size: var(--fs-btn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  cursor: pointer;
  text-align: center;
  border-radius: var(--r-btn);
  transition: background .2s, transform .2s;
}
.vl-cart-totals .vl-btn--wa:hover {
  background: #126e38;
  color: #fff;
  transform: none;
}

/* Table → grid rows */
.vl-cart-table { width: 100%; border-collapse: collapse; }
.vl-cart-table thead { display: none; }
.vl-cart-table tbody { display: block; }
.vl-cart-table th { display: none; }
.vl-cart-table td { border: none; padding: 0; }

.vl-cart-item {
  display: grid !important;
  grid-template-columns: 92px 132px max-content minmax(0, 1fr) auto;
  grid-template-areas: "product product product product total" ". qty remove . .";
  gap: 12px 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}

/* Product image */
.vl-cart-item__thumb { width: 80px; height: 80px; flex-shrink: 0; }
.vl-cart-item__thumb img {
  width: 80px; height: 80px; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--border); background: var(--card);
}
.vl-cart-item__product {
  grid-area: product; display: grid; grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px; align-items: center; min-width: 0;
}
.vl-cart-item__brand { margin-bottom: 3px; font-family: var(--font-h); font-size: var(--fs-badge); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-action); }
.vl-cart-item__brand a { color: inherit; text-decoration: none; }
.vl-cart-item__name {
  font-family: var(--font-h); font-size: var(--fs-body); font-weight: 600;
  color: var(--ink); text-decoration: none; display: block; margin-bottom: 2px;
}
.vl-cart-item__variation { font-size: var(--fs-small); color: var(--text-muted); }
.vl-cart-item__variation span { display: block; }
.vl-cart-item__info dl.variation,
.vl-cart-item__unit-price {
  display: block; margin: 4px 0 0; font-size: var(--fs-small); color: var(--text-muted);
}
.vl-cart-item__info dl.variation {
  margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent-action);
  border-radius: 0 7px 7px 0; background: color-mix(in srgb, var(--accent-action) 6%, var(--card));
}
.vl-cart-item__info dl.variation::before {
  content: 'Options produit'; display: block; margin-bottom: 4px; color: var(--accent-action);
  font-family: var(--font-h); font-size: .72rem; font-weight: 700; text-transform: uppercase;
}
.vl-cart-item__unit-price { display: none; }
.vl-cart-item__info dl.variation dt,
.vl-cart-item__info dl.variation dd { display: inline; margin: 0; }
.vl-cart-item__info dl.variation dd::after { content: ''; display: block; }

/* Price */
.vl-cart-item__price {
  font-family: var(--font-h); font-size: var(--fs-body); font-weight: 600;
  color: var(--ink); text-align: right; min-width: 70px;
}
.vl-cart-item__total {
  grid-area: total;
  font-family: var(--font-h); font-size: var(--fs-body); font-weight: 600;
  color: var(--ink); text-align: right;
}

/* Quantity stepper */
.vl-qty {
  width: 112px; height: 38px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: #fff;
}
.vl-cart-item__qty { grid-area: qty; justify-self: start; }
.vl-qty > .quantity { display: contents; }
.woocommerce-cart .vl-qty .vl-qty__btn {
  width: 36px; min-width: 0; height: 38px; min-height: 0; border: none; background: #fff;
  font-family: var(--font-b); font-size: var(--fs-body); color: var(--text);
  cursor: pointer; line-height: 1; padding: 0;
}
.woocommerce-cart .vl-qty .vl-qty__btn:hover { background: var(--neutral); }
.woocommerce-cart .vl-qty .quantity .vl-qty__input {
  width: 38px; min-width: 0; height: 38px; min-height: 0; text-align: center; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  line-height: 38px; padding: 0; background: #fff;
  -moz-appearance: textfield;
}
.woocommerce-cart .vl-qty__input::-webkit-outer-spin-button,
.woocommerce-cart .vl-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Remove button */
.vl-cart-item__remove-btn {
  font-size: var(--fs-small); color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center;
  font-family: var(--font-b); text-decoration: underline; text-underline-offset: 3px;
}
.vl-cart-item__remove { grid-area: remove; align-self: center; }
.vl-cart-item__remove-btn:hover { color: var(--ink); }

/* Shipping threshold bar */
.vl-shipping-bar {
  margin-bottom: 24px; padding: 14px 15px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
}
.vl-shipping-bar__status {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 10px; color: var(--ink); font-size: var(--fs-small);
}
.vl-shipping-bar__status > span:last-child { flex: 0 0 auto; }
.vl-shipping-bar__status .amount { color: var(--accent-action); font-weight: 700; }
.vl-shipping-bar__track {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.vl-shipping-bar__fill {
  height: 100%; background: var(--accent-action); border-radius: 3px;
  transition: width 0.5s ease;
}
.vl-shipping-bar--free {
  font-size: var(--fs-small); color: var(--success-text); font-weight: 600;
}
.vl-shipping-bar--free .vl-shipping-bar__status { margin: 0; color: var(--success-text); }

/* Coupon */
.vl-coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.vl-coupon-row .vl-input { flex: 1; min-height: 44px; padding: 10px 14px; font-size: var(--fs-small); }
.vl-coupon-row .vl-btn {
  min-height: 44px; padding: 10px 18px; background: var(--ink); color: var(--card);
  border: none; border-radius: var(--r-btn);
  font-family: var(--font-h); font-size: var(--fs-btn); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
}

/* Empty cart */
.vl-cart-empty {
  text-align: center; padding-top: 64px; padding-bottom: 72px;
  display: flex; flex-direction: column; align-items: center;
}
.vl-cart-empty__icon { margin-bottom: 12px; color: var(--text-muted); font-size: 1.25rem; line-height: 1; }
.vl-cart-empty h2 { margin: 0; color: var(--text); }
.vl-cart-empty__text { margin: 10px 0 0; color: var(--text-muted); line-height: 1.6; }
.vl-cart-empty .vl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; max-width: 280px; margin: 24px auto 0;
}

/* Shared elements */
.vl-continue-shopping {
  display: block; text-align: center; font-size: var(--fs-small);
  color: var(--text-muted); margin-top: 16px; text-decoration: underline; cursor: pointer;
}
.vl-secure-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--fs-small); color: var(--text-muted); margin-top: 16px;
}

/* Hide WC breadcrumb (we have step indicator) */
.woocommerce-cart .woocommerce-breadcrumb,
.woocommerce-checkout .woocommerce-breadcrumb { display: none; }

/* Hide WC page title (we have logo) */
.woocommerce-cart .vl-page__title,
.woocommerce-checkout .vl-page__title { display: none; }

/* Hide WC default coupon form in actions row */
.woocommerce-cart-form .coupon { display: none; }

/* Mobile */
/* Shared cart/checkout progress tracker */
.vl-step-indicator {
  width: min(calc(100% - 48px), 632px); margin: 40px auto 36px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; font-weight: 700;
}
.vl-step { position: relative; text-align: center; padding-top: 22px; color: var(--text-muted); }
.vl-step::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 12px; height: 12px;
  border: 2px solid var(--border-strong); border-radius: 50%; background: var(--card);
  transform: translateX(-50%); z-index: 2;
}
.vl-step--active { color: var(--ink); }
.vl-step--active::before {
  background: var(--accent-action); border-color: var(--accent-action);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-action) 14%, transparent);
}
.vl-step__arrow {
  width: 72px; height: 2px; margin-top: -18px; overflow: hidden;
  color: transparent; background: var(--border-strong);
}

/* Product information keeps the flexible space; controls stay compact. */
.vl-cart-item__info { min-width: 0; }
.vl-update-cart {
  width: 100%; min-height: 44px; margin: 20px 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.vl-cart--enhanced .vl-update-cart { display: none !important; }
.woocommerce-cart-form .vl-update-cart,
.woocommerce-cart-form .vl-update-cart:disabled { color: #fff; }

/* Delivery threshold notice. */
.vl-shipping-bar--free {
  margin: 0 0 24px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border));
  border-radius: var(--r-md); background: var(--status-ok-bg);
}
.vl-cart-item--updating { opacity: .55; pointer-events: none; }

@media (max-width: 480px) {
  .vl-page-logo { margin-top: 24px; font-size: var(--fs-h4); }
  .vl-commerce-hero { width: calc(100% - 28px); padding-top: 36px; padding-bottom: 24px; }
  .vl-step-indicator { width: calc(100% - 32px); margin-top: 24px; margin-bottom: 24px; font-size: var(--fs-badge); }
  .vl-step__arrow { width: 24px; }
  .vl-cart-layout,
  .vl-checkout-layout,
  .vl-cart-empty { padding-left: 16px; padding-right: 16px; }
  .vl-cart-layout { padding-top: 24px; padding-bottom: 40px; }
  .vl-cart-item {
    grid-template-columns: 72px 132px minmax(0, 1fr) !important;
    grid-template-areas: "product product product" ". qty remove" ". total total";
    gap: 10px 12px; align-items: start;
  }
  .vl-cart-item__product { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .vl-cart-item__qty { grid-area: qty; }
  .vl-cart-item__remove { grid-area: remove; justify-self: start; }
  .vl-cart-item__thumb, .vl-cart-item__thumb img { width: 64px; height: 64px; }
  .vl-cart-item__price { display: none; }
  .vl-cart-item__total { display: block; grid-area: total; text-align: left; padding-top: 2px; }
  .vl-shipping-bar__status { align-items: flex-start; line-height: 1.5; }
  .vl-input, .vl-cart-layout input { font-size: 1rem; }
}
