/* Nath's Cakes — Cart page — minimal redesign */

body#cart { background: #faf5f6; }
body#cart #wrapper { background: transparent; }
body#cart #main { padding-top: 56px; }

/* Hide reassurance */
body#cart #hook-reassurance,
body#cart .block-reassurance,
body#cart .blockreassurance,
body#cart .container-blockreassurance,
body#cart [id*="reassurance"],
body#cart [class*="reassurance"] { display: none !important; }

/* ---------- Grid ---------- */
body#cart .cart-grid { align-items: flex-start; }

/* ---------- Left card ---------- */
body#cart .cart-container {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(26,11,14,.07);
  padding: 0;
}

body#cart .cart-container > .card-block {
  padding: 20px 24px 14px;
  border-bottom: 1px solid #f5e8ea;
}

body#cart .cart-container h1 {
  font-family: 'Pacifico', cursive;
  font-size: 18px;
  font-weight: 400;
  color: #1a0b0e;
  margin: 0;
}

/* ---------- Column headers ---------- */
body#cart .nc-cart-col-headers {
  display: flex;
  align-items: center;
  padding: 8px 24px;
  background: #faf5f6;
  border-bottom: 1px solid #f1d8db;
  gap: 12px;
}

body#cart .nc-cart-col-headers span {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #b09298;
  text-transform: uppercase;
  letter-spacing: .6px;
  flex-shrink: 0;
}

body#cart .nc-ch-product { /* positioned naturally, left-aligned */ }

/* ---------- Product line: single compact row ---------- */
body#cart .product-line-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  padding: 12px 24px;
  gap: 12px;
  border-bottom: 1px solid #f9eced;
  width: 100%;
  box-sizing: border-box;
}

body#cart .product-line-grid:last-child { border-bottom: none; }

/* Image */
body#cart .product-line-grid-left {
  flex: 0 0 56px !important;
  max-width: 56px !important;
  width: 56px !important;
  padding: 0 !important;
}

body#cart .product-line-grid-left .product-image,
body#cart .product-line-grid-left picture { display: block; width: 56px; height: 56px; }

body#cart .product-line-grid-left img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Name + unit price */
body#cart .product-line-grid-body {
  flex: 1 1 auto !important;
  max-width: none !important;
  padding: 0 !important;
  min-width: 0;
}

body#cart .product-line-grid-body .product-line-info a.label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a0b0e;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body#cart .product-line-grid-body .product-line-info a.label:hover { color: #f26074; }

body#cart .product-line-grid-body .product-price.h5 { margin-top: 2px; }

body#cart .product-line-grid-body .current-price .price {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #b09298;
}

body#cart .product-line-grid-body .product-line-info:not(:first-child) { display: none; }

/* Right: qty + total + delete */
body#cart .product-line-grid-right {
  flex: 0 0 auto !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
}

body#cart .product-line-actions > .row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}

body#cart .product-line-actions .col-xs-4.hidden-md-up { display: none !important; }

body#cart .product-line-actions .qty {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

/* Custom qty stepper pill */
body#cart .nc-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #f1d8db;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  height: 32px;
}

body#cart .nc-qty-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: transparent;
  color: #f26074;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}

body#cart .nc-qty-btn:hover { background: #fde8ea; }

body#cart .js-cart-line-product-quantity {
  width: 30px;
  height: 100%;
  border: none;
  border-left: 1.5px solid #f1d8db;
  border-right: 1.5px solid #f1d8db;
  text-align: center;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a0b0e;
  background: #fff;
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
}

body#cart .js-cart-line-product-quantity::-webkit-inner-spin-button,
body#cart .js-cart-line-product-quantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide PS touchspin injected buttons */
body#cart .bootstrap-touchspin-up,
body#cart .bootstrap-touchspin-down,
body#cart .touchspin-up,
body#cart .touchspin-down,
body#cart .input-group-btn,
body#cart .input-group-prepend,
body#cart .input-group-append { display: none !important; }

body#cart .input-group.bootstrap-touchspin {
  border: none !important;
  width: auto !important;
  display: flex !important;
  align-items: center;
}

body#cart .product-line-actions .price {
  flex: 0 0 72px !important;
  width: 72px !important;
  padding: 0 0 0 30px !important;
  text-align: right;
}

body#cart .product-line-actions .product-price strong {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a0b0e;
  white-space: nowrap;
}

/* Delete */
body#cart .cart-line-product-actions {
  flex: 0 0 28px;
  width: 28px;
  display: flex;
  justify-content: center;
}

body#cart .remove-from-cart {
  display: flex;
  align-items: center;
  color: #d9c0c4;
  text-decoration: none;
  transition: color .15s;
}

body#cart .remove-from-cart:hover { color: #f26074; }
body#cart .remove-from-cart i.material-icons { font-size: 16px; }

/* Hide clearfix */
body#cart .product-line-grid > .clearfix { display: none; }

/* ---------- Continue shopping ---------- */
body#cart #main > section#main > .cart-grid-body > a.label,
body#cart .cart-grid-body > a.label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #b09298;
  text-decoration: none;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

body#cart .cart-grid-body > a.label:hover {
  color: #f26074;
  background: #fdf0f1;
}

/* ---------- Right panel ---------- */
body#cart .cart-grid-right { position: sticky; top: 20px; }

body#cart .cart-summary {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(26,11,14,.07);
  overflow: hidden;
  padding: 0;
}

/* Subtotals */
body#cart .cart-detailed-totals { padding: 16px 20px 0; }

body#cart .cart-detailed-subtotals .cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  color: #7a5560;
  border-bottom: none;
}

body#cart .cart-detailed-subtotals .cart-summary-line .value {
  font-weight: 500;
  color: #1a0b0e;
}

/* Total row */
body#cart .cart-summary-totals .cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 20px;
  background: #fdf6f7;
  border-top: 1px solid #f1d8db;
  margin-top: 8px;
}

body#cart .cart-summary-totals .cart-total .label {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #7a5560;
  text-transform: uppercase;
  letter-spacing: .5px;
}

body#cart .cart-summary-totals .cart-total .value {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1a0b0e;
}

/* Voucher */
body#cart .cart-voucher { padding: 0 20px 12px; }

/* Checkout button */
body#cart .cart-detailed-actions {
  padding: 10px 20px 20px;
  background: transparent;
  text-align: center;
}

body#cart .cart-detailed-actions .btn.btn-primary {
  display: block;
  width: 100%;
  background: #f26074;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 13px 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 4px 14px rgba(242,96,116,.25);
}

body#cart .cart-detailed-actions .btn.btn-primary:hover { background: #d94d62; }

body#cart .cart-detailed-actions .btn.btn-primary.disabled {
  background: #e8d5d7;
  box-shadow: none;
  cursor: not-allowed;
}

body#cart .product-line-grid-right .cart-line-product-actions,
body#cart .product-line-grid-right .product-price { line-height: 28px; }

/* Responsive */
@media (max-width: 991px) {
  body#cart .cart-grid-right { position: static; margin-top: 16px; }
  body#cart .product-line-grid { flex-wrap: nowrap; }
}
