/* ============================================================
   CART PAGE
   ============================================================ */

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.cart-grid-body { min-width: 0; }

.cart-grid-right { position: sticky; top: 100px; }

.cart-overview, .cart-items {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--mh-line);
  align-items: center;
}

.cart-item:last-child { border-bottom: 0; }

.cart-item img,
.cart-item .product-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #F4F4F2;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

.product-line-info .label,
.product-line__name {
  font-family: var(--mh-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--mh-plum);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
}

.product-line-info-link,
.product-line__name a {
  color: var(--mh-plum);
  text-decoration: none;
}

.product-line-info-link:hover,
.product-line__name a:hover { color: var(--mh-primary-deep); }

.product-line__brand,
.product-line-info-text {
  font-size: 11.5px;
  color: var(--mh-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-price,
.cart-item .product-price,
.product-line__total,
.total-amount {
  font-family: var(--mh-font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--mh-plum);
}

.regular-price, .price-discount {
  color: var(--mh-muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 13px;
}

.cart-summary,
.cart-grid-right .card,
.cart-summary-line-list {
  background: #FAFAFA;
  border: 1px solid var(--mh-line);
  border-radius: 4px;
  padding: 1.5rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 14px;
  color: var(--mh-plum-soft);
}

.cart-summary-line.cart-total,
.cart-total {
  border-top: 1px solid var(--mh-line);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 17px;
  color: var(--mh-plum);
}

.cart-summary-totals .label,
.cart-summary-line .label { font-weight: 500; text-transform: none; letter-spacing: 0; }

#main .cart-detailed-actions .btn,
.cart-summary .btn-primary,
.cart-grid-right .btn {
  width: 100%;
  padding: 1rem;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quantity input in cart */
.qty-input-group, .input-group.bootstrap-touchspin {
  display: inline-flex;
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  overflow: hidden;
}

.qty-input-group .form-control,
.input-group.bootstrap-touchspin input {
  width: 50px;
  border: 0;
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 0;
}

.qty-input-group button,
.bootstrap-touchspin .btn,
.bootstrap-touchspin .input-group-btn-vertical .btn {
  background: #FAFAFA;
  border: 0;
  color: var(--mh-plum);
  padding: 0 0.85rem;
  cursor: pointer;
  border-radius: 0;
}

.qty-input-group button:hover { background: var(--mh-cream); }

@media (max-width: 900px) {
  .cart-grid-right { position: static; }
}

/* ============================================================
   CART PAGE — fixes for Hummingbird's actual structure
   ============================================================ */

/* Override Bootstrap col-lg-8/4 inside cart-grid; force 2-col layout */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

.cart-grid__content,
.cart-grid__aside {
  flex: none;
  max-width: 100%;
  width: auto;
}

.cart-grid__aside {
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-grid__aside { position: static; }
}

/* Cart products container */
.cart-grid__products-details,
.cart-grid__content > .card,
.cart-grid__content > section {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 4px;
  overflow: hidden;
}

/* Individual cart line items */
.cart-item,
.cart-grid__products-details .cart-item,
.cart-grid__products-details > div {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--mh-line);
  align-items: center;
}

.cart-item img,
.cart-grid__products-details img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #F4F4F2;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

/* Style bm_cart's totals block (uses bm-cart-* prefix) */
.bm-cart-totals,
.cart-grid__aside .card,
.cart-grid__aside > div {
  background: #FAFAFA;
  border: 1px solid var(--mh-line);
  border-radius: 4px;
  padding: 1.5rem;
  width: 100%;
}

.bm-cart-totals h2,
.cart-grid__aside h2,
.cart-grid__aside h3 {
  font-family: "Bricolage Grotesque", var(--mh-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mh-plum);
  margin: 0 0 1rem;
  padding: 0;
  letter-spacing: -0.01em;
  border: 0;
}

#bm-cart-panel .bm-cart-total-row,
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 14px;
  color: var(--mh-plum-soft);
  border: 0;
}

#bm-cart-panel .bm-cart-grand-total,
#bm-cart-panel .bm-cart-total-row.cart-total,
.cart-summary-line.cart-total {
  border-top: 1px solid var(--mh-line);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 17px;
  color: var(--mh-plum);
}

/* Checkout CTA — full width, prominent */
.cart-grid__aside .btn,
.bm-cart-totals .btn,
.cart-detailed-actions .btn,
a.btn[href*="checkout"],
button.btn[name="checkout"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1rem;
  background: var(--mh-plum);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  min-height: 52px;
}

.cart-grid__aside .btn:hover { background: var(--mh-primary); }

/* Fjern link (remove from cart) */
.cart-item .remove-from-cart,
.cart-item a[href*="delete"] {
  color: var(--mh-primary-deep);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.cart-item .remove-from-cart:hover { color: var(--mh-plum); }

/* "Fortsæt indkøb" link */
.cart-grid__content + a,
.cart-grid__content .continue-shopping,
a[href*="continue"] { color: var(--mh-primary-deep); font-weight: 600; font-size: 13.5px; text-decoration: none; }

/* Product line price styling */
.product-line .product-price,
.cart-item .price { font-family: var(--mh-font-body); font-weight: 700; font-size: 15px; color: var(--mh-plum); }

.product-line .regular-price,
.cart-item .regular-price { color: var(--mh-muted); text-decoration: line-through; font-weight: 500; font-size: 13px; }

/* ============================================================
   CART PAGE v2 — Conversion-optimized 10/10 e-commerce layout
   - Card-style product lines, sticky summary, free shipping bar,
     USP row, voucher polish, payment icons, big CTA
   ============================================================ */

body#cart #wrapper {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Hide breadcrumb, main category nav, AND footer on cart page —
   distraction-free checkout focus. Hooks remain in DOM (display:none
   preserves any inline JS / hook events). */
body#cart .breadcrumb__wrapper,
body#cart .mh-nav,
body#cart .mh-pre-footer,
body#cart .mh-footer,
body#cart #footer,
body#cart footer.mh-footer,
body#cart footer#footer { display: none; }

/* Fix .cart__overview display:grid that indents the product lines.
   Inner cart__list / cart__item / product-line must take full width. */
body#cart .cart__overview,
body#cart .cart-overview {
  display: block;
  padding: 0;
  margin: 0;
}
body#cart .cart__list,
body#cart .cart__item,
body#cart .js-cart-list,
body#cart .js-cart-item {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
/* Remove the empty <hr> separators that add unwanted top/bottom whitespace */
body#cart .cart__overview > hr,
body#cart .cart-overview > hr,
body#cart .cart-grid__products-details > hr { display: none; }

/* Align cart page with PDP grid */
body#cart .columns-container.container,
body#cart #wrapper .columns-container.container {
  max-width: var(--bz-max);
  width: auto;
  padding: 0 var(--bz-pad);
  margin-left: auto;
  margin-right: auto;
}
body#cart #center-column { max-width: none; padding: 0; }

/* Hero title row with item count */
body#cart .page-title-section .page-title,
body#cart .page-title-section h1 {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--mh-plum);
  margin: 0 0 1.25rem;
}

body#cart .cart-grid.row {
  --bs-gutter-x: 1.75rem;
  margin-left: 0;
  margin-right: 0;
}
body#cart .cart-grid__content,
body#cart .cart-grid__aside { padding: 0; }
body#cart .cart-grid__content { padding-right: 1.75rem; }

/* Card-style cart items wrapper */
body#cart .cart-grid__products-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  overflow: hidden;
}

/* Product line — clean, premium row */
body#cart .product-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--mh-line);
  position: relative;
}
body#cart .product-line:last-child { border-bottom: 0; }

body#cart .product-line__image {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  background: #F7F7F5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
body#cart .product-line__image img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

body#cart .product-line__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: start;
}
body#cart .product-line__content-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
body#cart .product-line__title {
  font-family: var(--mh-font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--mh-plum);
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-decoration: none;
  margin: 0;
}
body#cart .product-line__title:hover { color: var(--mh-primary-deep); }

body#cart .product-line__item--info {
  font-size: 12.5px;
  color: var(--mh-muted);
  margin: 0;
}
body#cart .product-line__item-label { font-weight: 500; }

body#cart .product-line__item--availability { font-size: 12.5px; }
body#cart .product-line__item-availability-message.text-success { color: #1F8F4C; }
body#cart .product-line__item-availability-icon { font-size: 14px; vertical-align: middle; }

body#cart .product-line__item--prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.2rem;
}
body#cart .product-line__item-price {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--mh-plum);
}
body#cart .product-line__item-regular-price {
  color: var(--mh-muted);
  text-decoration: line-through;
  font-size: 13px;
}
body#cart .product-line__item-discount,
body#cart .product-line__item-discount.badge {
  background: var(--mh-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11px;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
body#cart .product-line__item-unit-price {
  font-size: 11.5px;
  color: var(--mh-muted);
  display: block;
  flex-basis: 100%;
}

/* Right side: qty + line total */
body#cart .product-line__content-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  justify-self: end;
}
body#cart .product-line__quantity-button {
  display: inline-flex;
  width: 96px;
  height: 36px;
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  overflow: hidden;
  background: #FFFFFF;
}
body#cart .product-line__quantity-button .input-group,
body#cart .product-line__quantity-button .quantity-button__group {
  width: 100%;
  height: 100%;
  border: 0;
  display: flex;
}
body#cart .product-line__quantity-button .btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 28px;
  height: 100%;
  padding: 0;
  color: var(--mh-plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
body#cart .product-line__quantity-button .btn:hover {
  background: var(--mh-rose);
  color: var(--mh-primary-deep);
}
body#cart .product-line__quantity-button .btn i { font-size: 16px; }
body#cart .product-line__quantity-button input,
body#cart .product-line__quantity-button .form-control {
  width: 40px;
  height: 100%;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  background: #FFFFFF;
  padding: 0;
  box-shadow: none;
  outline: none;
}

body#cart .product-line__price {
  font-weight: 700;
  font-size: 16px;
  color: var(--mh-plum);
  white-space: nowrap;
}

/* Remove (X) — top-right corner, OUT of the way of qty stepper */
body#cart .product-line__actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}
body#cart .product-line__actions .js-remove-from-cart,
body#cart .product-line__actions a[href*="delete"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--mh-muted);
  font-size: 0;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid transparent;
}
body#cart .product-line__actions .js-remove-from-cart::before {
  content: "✕";
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  display: block;
}
body#cart .product-line__actions .js-remove-from-cart:hover {
  background: var(--mh-rose);
  border-color: var(--mh-primary);
  color: var(--mh-primary-deep);
}

/* Give qty/price space below the corner X */
body#cart .product-line { padding-right: 1.25rem; }
body#cart .product-line__content-right { padding-top: 1.5rem; }

/* Continue shopping button */
body#cart .cart__continue-shopping {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--mh-border);
  color: var(--mh-plum);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
  width: auto;
  height: auto;
}
body#cart .cart__continue-shopping:hover { background: var(--mh-rose); border-color: var(--mh-primary); }
body#cart .cart__continue-shopping i { font-size: 16px; }

/* ============================================================
   RIGHT COLUMN — Order Summary (sticky, conversion-focused)
   ============================================================ */
body#cart .cart-grid__aside-wrapper {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Free shipping progress (pseudo bar via gradient — content set via attribute) */
body#cart .cart-summary {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1.25rem;
  width: 100%;
  box-shadow: 0 1px 4px rgba(15,15,15,0.04);
}

body#cart .cart-grid__aside h2 {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--mh-plum);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

body#cart .cart-summary__subtotals { margin-bottom: 0.25rem; }
body#cart .cart-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--mh-plum-soft);
  border: 0;
  line-height: 1.3;
}
body#cart .cart-summary__label { font-weight: 500; }
body#cart .cart-summary__value { font-weight: 600; color: var(--mh-plum); }

body#cart .cart-summary__totals .cart-total,
body#cart #cart-subtotal-shipping ~ .cart-total,
body#cart .cart-summary-line--total {
  border-top: 1px solid var(--mh-line);
  padding-top: 0.55rem;
  margin-top: 0.4rem;
}
body#cart .cart-summary__totals .cart-total .label,
body#cart .cart-summary__totals .cart-total .value {
  font-weight: 700;
  font-size: 17px;
  color: var(--mh-plum);
}

/* Voucher block */
body#cart .cart-voucher,
body#cart .promo-code,
body#cart .js-discount {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mh-line);
}
body#cart .promo-code-button,
body#cart .has-discount {
  font-size: 13px;
  font-weight: 600;
  color: var(--mh-primary-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
body#cart .promo-code-button::before { content: "+"; font-size: 16px; }
body#cart .promo-code .input-group,
body#cart .promo-input {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
body#cart .promo-code .form-control,
body#cart .promo-input input {
  height: 42px;
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 0 0.75rem;
  font-size: 13px;
  flex: 1 1 auto;
}
body#cart .promo-code .btn,
body#cart .promo-input button {
  height: 42px;
  background: var(--mh-plum);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Big checkout CTA */
body#cart .cart-detailed-actions,
body#cart .cart-summary__actions {
  margin-top: 0.85rem;
}
body#cart .cart-detailed-actions .btn,
body#cart .cart-summary__actions .btn,
body#cart .cart-summary__actions a.btn,
body#cart a[href*="checkout"].btn,
body#cart .js-cart-detailed-actions .btn {
  width: 100%;
  background: linear-gradient(180deg, #2EBD63 0%, #1FA855 100%);
  color: #FFFFFF;
  border: 0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(31, 168, 85, 0.25);
  transition: all .15s ease;
}
body#cart .cart-detailed-actions .btn:hover,
body#cart a[href*="checkout"].btn:hover {
  background: linear-gradient(180deg, #34CE6E 0%, #25B85F 100%);
  box-shadow: 0 4px 10px rgba(31, 168, 85, 0.35);
  transform: translateY(-1px);
}
body#cart .cart-detailed-actions .btn::after,
body#cart a[href*="checkout"].btn::after {
  content: "→";
  font-size: 18px;
  font-weight: 700;
  margin-left: 0.25rem;
}

/* USP/Trust card below summary */
body#cart .cart-grid__aside-wrapper::after {
  content: "";
  display: block;
}
body#cart .cart-grid__aside-wrapper hr { display: none; }

/* Reassurance block below summary — restyle as USP card */
body#cart #block-reassurance,
body#cart .block-reassurance {
  display: block;
  background: #FAFAFA;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1rem;
}
body#cart #block-reassurance ul,
body#cart .block-reassurance ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
body#cart #block-reassurance li,
body#cart .block-reassurance li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12.5px;
  color: var(--mh-plum-soft);
}
body#cart #block-reassurance li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Add MyHair USP card if reassurance not configured */
body#cart .cart-grid__aside-wrapper::before {
  content: "🚚 Levering 1-3 hverdage  ·  ↩ 30 dages returret  ·  🔒 Sikker betaling";
  display: block;
  background: #FAFAFA;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 12px;
  color: var(--mh-plum-soft);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
  order: 99;
}

/* Cross-sell below */
body#cart .cart-grid__footer {
  margin-top: 3rem;
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 0;
}
body#cart .cart-grid__footer > * {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
body#cart .cart-grid__footer .ps-featuredproducts,
body#cart .cart-grid__footer .featured-products,
body#cart .cart-grid__footer .ps-categoryproducts,
body#cart .cart-grid__footer section {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* "Fremhævede varer" (featured products) title style */
body#cart .cart-grid__footer h2,
body#cart .cart-grid__footer .h2,
body#cart .featured-products h2 {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--mh-plum);
  margin-bottom: 1.5rem;
}

/* Featured products: kill the nested Bootstrap .container so the section
   lines up edge-to-edge with the cart content above it */
body#cart .cart-grid__footer .module-products,
body#cart .cart-grid__footer .module-products.container {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

/* 6-up product grid */
body#cart .cart-grid__footer .products,
body#cart .cart-grid__footer .module-products__list .products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1200px) {
  body#cart .cart-grid__footer .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  body#cart .cart-grid__footer .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}
@media (max-width: 520px) {
  body#cart .cart-grid__footer .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   CART PAGE — Mobile + Tablet
   ============================================================ */
@media (max-width: 991px) {
  body#cart .cart-grid.row { flex-direction: column; }
  body#cart .cart-grid__content { padding-right: 0; width: 100%; max-width: 100%; }
  body#cart .cart-grid__aside { width: 100%; max-width: 100%; margin-top: 1rem; }
  body#cart .cart-grid__aside-wrapper { position: static; }
}

@media (max-width: 600px) {
  body#cart .product-line {
    grid-template-columns: 72px 1fr;
    gap: 0.85rem;
    padding: 1rem;
    padding-right: 2.5rem;
  }
  body#cart .product-line__image { width: 72px; height: 72px; }
  body#cart .product-line__content {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  body#cart .product-line__content-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    margin-top: 0.5rem;
  }
  body#cart .product-line__title { font-size: 14px; }
  body#cart .product-line__item-price { font-size: 14px; }
  body#cart .product-line__price { font-size: 15px; }
  body#cart .product-line__actions { top: 0.65rem; right: 0.65rem; }
  body#cart .cart-summary { padding: 1rem; }
  body#cart .cart-detailed-actions .btn { min-height: 50px; font-size: 13.5px; }
}

/* ============================================================
   BM_CART SLIDING DRAWER — Tighter padding, smaller qty,
   side-by-side action buttons
   ============================================================ */
.bm-cart-footer {
  padding: 14px;
}
.bm-cart-totals {
  margin-bottom: 12px;
}
#bm-cart-panel .bm-cart-total-row {
  padding: 4px 0;
  margin-bottom: 0;
  font-size: 13.5px;
}
#bm-cart-panel .bm-cart-total-row.bm-cart-grand-total {
  font-size: 15.5px;
  padding-top: 8px;
  margin-top: 8px;
}

/* Side-by-side buttons in cart footer */
.bm-cart-buttons {
  flex-direction: row;
  gap: 8px;
}
.bm-cart-btn {
  padding: 11px 12px;
  font-size: 13px;
  flex: 1 1 0;
  white-space: nowrap;
  line-height: 1.2;
}
.bm-cart-btn-primary {
  background: var(--mh-plum);
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bm-cart-btn-secondary {
  background: #FFFFFF;
  color: var(--mh-plum);
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  font-weight: 600;
}
.bm-cart-btn-primary:hover { background: var(--mh-primary); opacity: 1; }
.bm-cart-btn-secondary:hover { background: var(--mh-rose); border-color: var(--mh-primary); }

/* Smaller qty stepper in sliding cart */
.bm-cart-qty-btn {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.bm-cart-qty-input {
  width: 36px;
  height: 24px;
  font-size: 12.5px;
}

/* Tighter line padding inside cart drawer */
.bm-cart-content { padding: 14px; }
.bm-cart-line { padding: 10px 0; }

/* ============================================================
   CART PAGE v3 — Full CRO arsenal
   Steps · Free shipping bar · Scarcity · Delivery date ·
   Express checkout · Trust card · Bonus · Order notes ·
   Mobile sticky CTA · Testimonials
   ============================================================ */

/* Checkout steps indicator */
.mh-checkout-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
}
.mh-checkout-steps__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mh-muted);
  font-weight: 500;
}
.mh-checkout-steps__item + .mh-checkout-steps__item::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--mh-soft);
}
.mh-checkout-steps__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mh-line);
  color: var(--mh-muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mh-checkout-steps__item.is-active { color: var(--mh-plum); font-weight: 700; }
.mh-checkout-steps__item.is-active .mh-checkout-steps__num {
  background: var(--mh-plum);
  color: #FFFFFF;
}

/* Free shipping progress bar — compact */
.mh-shipbar {
  background: linear-gradient(135deg, var(--mh-rose) 0%, var(--mh-primary-soft) 100%);
  border: 1px solid var(--mh-primary-soft);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
}
.mh-shipbar.is-complete {
  background: linear-gradient(135deg, #E8F8EE 0%, #D2F0DC 100%);
  border-color: #B6E5C0;
}
.mh-shipbar__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12.5px;
  color: var(--mh-plum);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.mh-shipbar__icon { font-size: 14px; flex-shrink: 0; }
.mh-shipbar__msg { flex: 1 1 auto; }
.mh-shipbar__msg strong { color: var(--mh-primary-deep); font-weight: 800; }
.mh-shipbar.is-complete .mh-shipbar__msg strong { color: #1F8F4C; }
.mh-shipbar__track {
  height: 5px;
  background: #FFFFFF;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.mh-shipbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mh-primary) 0%, var(--mh-primary-deep) 100%);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.mh-shipbar.is-complete .mh-shipbar__fill {
  background: linear-gradient(90deg, #2EBD63 0%, #1F8F4C 100%);
}

/* Cart header with item count */
.mh-cart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 1rem;
  gap: 1rem;
}
.mh-cart-header__title {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--mh-plum);
  margin: 0;
}
.mh-cart-header__count {
  font-size: 13.5px;
  color: var(--mh-muted);
  font-weight: 600;
}

/* Hide the old default page title */
body#cart .page-title-section,
body#cart .cart-grid__content > .h1,
body#cart .cart-grid__content > h1 { display: none; }

/* Scarcity + delivery row — side by side inside a flex wrapper */
.mh-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
  align-items: center;
}
.mh-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.mh-scarcity--low { background: #FFF3CD; color: #8B5A00; }
.mh-scarcity--social { background: var(--mh-rose); color: var(--mh-primary-deep); }
.mh-scarcity--hot { background: #FFE0E0; color: #B22222; }

.mh-deliv {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  color: var(--mh-plum-soft);
  background: #F0F9F2;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  line-height: 1.4;
}
.mh-deliv strong { color: #1F8F4C; font-weight: 700; }

/* Extras: gift wrap / order note / voucher collapsibles */
.mh-cart-extras {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.mh-cart-extras__item {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 6px;
  overflow: hidden;
}
.mh-cart-extras__item > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mh-plum);
  list-style: none;
}
.mh-cart-extras__item > summary::-webkit-details-marker { display: none; }
.mh-cart-extras__chev {
  margin-left: auto;
  font-size: 14px;
  color: var(--mh-muted);
  transition: transform .2s ease;
}
.mh-cart-extras__item[open] .mh-cart-extras__chev { transform: rotate(180deg); }
.mh-cart-extras__body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mh-cart-extras__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--mh-plum-soft);
  cursor: pointer;
}
.mh-cart-extras__textarea,
.mh-cart-extras__input {
  width: 100%;
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  font-size: 13.5px;
  background: #FFFFFF;
  font-family: var(--mh-font-body);
  color: var(--mh-plum);
  resize: vertical;
}
.mh-cart-extras__voucher {
  display: flex;
  gap: 0.4rem;
}
.mh-cart-extras__apply {
  background: var(--mh-plum);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.mh-cart-extras__apply:hover { background: var(--mh-primary); }

/* Express checkout panel */
.mh-express {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}
.mh-express__label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-muted);
  margin-bottom: 0.65rem;
}
.mh-express__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.mh-express__btn {
  height: 46px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter .15s ease;
}
.mh-express__btn:hover { filter: brightness(1.08); }
.mh-express__btn--mobilepay { background: #5A78FF; color: #FFFFFF; }
.mh-express__btn--applepay { background: #000000; color: #FFFFFF; font-family: -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -0.02em; }
.mh-express__btn--applepay .mh-express__btn-text::before { content: ""; }
.mh-express__divider {
  text-align: center;
  position: relative;
  margin-top: 0.85rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mh-muted);
}
.mh-express__divider::before,
.mh-express__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 22px);
  height: 1px;
  background: var(--mh-line);
}
.mh-express__divider::before { left: 0; }
.mh-express__divider::after { right: 0; }
.mh-express__divider span { background: #FFFFFF; padding: 0 0.5rem; }

/* Summary card (replaces old plain summary) */
.mh-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(15,15,15,0.04);
}
.mh-summary-card__title {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--mh-plum);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

/* Summary card links: gift wrap + voucher — small inline collapsibles */
.mh-summary-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--mh-line);
}
.mh-summary-links__item {
  border: 0;
}
.mh-summary-links__item > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mh-plum-soft);
  list-style: none;
}
.mh-summary-links__item > summary::-webkit-details-marker { display: none; }
.mh-summary-links__item > summary:hover { color: var(--mh-primary-deep); }
.mh-summary-links__chev {
  margin-left: auto;
  font-size: 13px;
  color: var(--mh-muted);
  transition: transform .2s ease;
}
.mh-summary-links__item[open] .mh-summary-links__chev { transform: rotate(180deg); }
.mh-summary-links__body {
  padding: 0.3rem 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mh-summary-links__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: var(--mh-plum-soft);
  cursor: pointer;
}
.mh-summary-links__textarea,
.mh-summary-links__input {
  width: 100%;
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
  font-size: 12.5px;
  background: #FFFFFF;
  font-family: var(--mh-font-body);
  color: var(--mh-plum);
  resize: vertical;
}
.mh-summary-links__voucher {
  display: flex;
  gap: 0.35rem;
}
.mh-summary-links__apply {
  background: var(--mh-plum);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  padding: 0 0.85rem;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.mh-summary-links__apply:hover { background: var(--mh-primary); }

/* Trust card */
.mh-trust-card {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.mh-trust-card__head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 0.85rem;
}
.mh-trust-card__tp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--mh-plum);
}
.mh-trust-card__tp-stars {
  display: inline-flex;
  gap: 1px;
}
.mh-trust-card__tp-stars span {
  width: 14px;
  height: 14px;
  background: var(--mh-tp-green);
  position: relative;
}
.mh-trust-card__tp-stars span::after {
  content: "★";
  position: absolute;
  inset: 0;
  color: #FFFFFF;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}
.mh-trust-card__tp-logo { color: var(--mh-tp-green); font-weight: 800; }
.mh-trust-card__tp-rating {
  font-size: 11.5px;
  color: var(--mh-muted);
  margin-top: 4px;
  font-weight: 500;
}
.mh-trust-card__usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 12.5px;
  color: var(--mh-plum-soft);
  line-height: 1.4;
}
.mh-trust-card__usps li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.mh-trust-card__usps strong { color: var(--mh-plum); font-weight: 700; }

/* Payment icons row */
.mh-pay-row {
  background: #FAFAFA;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: center;
}
.mh-pay-row__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-muted);
  margin-bottom: 0.55rem;
}
.mh-pay-row__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

/* Replace plain ::before USP row in old override with cleaner card-based version */
body#cart .cart-grid__aside-wrapper::before { content: none; display: none; }
body#cart .cart-grid__aside-wrapper::after { content: none; }

/* Customer testimonials strip */
.mh-cart-reviews {
  margin: 4rem 0 1rem;
  padding: 0 var(--bz-pad);
  max-width: var(--bz-max);
  margin-left: auto;
  margin-right: auto;
}
.mh-cart-reviews__title {
  font-family: var(--mh-font-heading);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--mh-plum);
  text-align: center;
  margin: 0 0 1.75rem;
}
.mh-cart-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.mh-cart-reviews__card {
  background: #FFFFFF;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mh-cart-reviews__stars {
  color: var(--mh-yellow);
  font-size: 18px;
  letter-spacing: 2px;
}
.mh-cart-reviews__quote {
  font-size: 14px;
  color: var(--mh-plum);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}
.mh-cart-reviews__author {
  font-size: 12.5px;
  color: var(--mh-muted);
  font-weight: 600;
}

/* Mobile sticky checkout bar */
.mh-mobile-checkout-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #FFFFFF;
  border-top: 1px solid var(--mh-line);
  box-shadow: 0 -6px 18px rgba(15,15,15,0.08);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  align-items: center;
  gap: 1rem;
}
.mh-mobile-checkout-bar__total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}
.mh-mobile-checkout-bar__label {
  font-size: 11px;
  color: var(--mh-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.mh-mobile-checkout-bar__amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--mh-plum);
}
.mh-mobile-checkout-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #2EBD63 0%, #1FA855 100%);
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(31, 168, 85, 0.3);
}
.mh-mobile-checkout-bar__btn:hover {
  background: linear-gradient(180deg, #34CE6E 0%, #25B85F 100%);
  color: #FFFFFF;
}

@media (max-width: 991px) {
  body#cart .mh-mobile-checkout-bar { display: flex; }
  body#cart main, body#cart #wrapper { padding-bottom: 90px; }
}

/* Cart page mobile + tablet polish */
@media (max-width: 991px) {
  .mh-checkout-steps { gap: 0.35rem; font-size: 12px; }
  .mh-shipbar { padding: 0.85rem 1rem; }
  .mh-shipbar__head { font-size: 13px; }
  .mh-cart-reviews__grid { grid-template-columns: 1fr; }
  .mh-cart-header__title { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .mh-checkout-steps__label { display: none; }
  .mh-checkout-steps__item.is-active .mh-checkout-steps__label { display: inline; }
  .mh-cart-extras__item > summary { font-size: 13px; padding: 0.75rem; }
  .mh-trust-card__usps { font-size: 12px; }
  .mh-cart-reviews { padding: 0 1rem; }
}
