/* ============================================================
   LIZABEELA Cart Page — Figma-Aligned Luxury Minimal
   Brand: LIZABEELA | Colors: #fffdfb / #2e2e2e / #d8a7b1 / #887870
   ============================================================ */

/* ── Container ── */
.lzb-cart {
  background: #faf8f5;
  min-height: 60vh;
}

.lzb-cart__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 130px 56px 96px;
}

/* ── Header ── */
.lzb-cart__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: #2e2e2e;
  line-height: 1.15;
  letter-spacing: .02em;
  margin: 0 0 8px;
}

.lzb-cart__subtitle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #887870;
  letter-spacing: .5px;
  margin: 0 0 48px;
}

.lzb-cart__count {
  color: #d8a7b1;
}

/* ── Layout ── */
.lzb-cart__layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.lzb-cart__main {
  flex: 1;
  min-width: 0;
}

.lzb-cart__sidebar {
  width: 400px;
  flex-shrink: 0;
  position: sticky;
  top: 130px;
}

/* ── Empty Cart ── */
.lzb-cart-empty {
  text-align: center;
  padding: 80px 40px;
}

.lzb-cart-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  color: #d8a7b1;
}

.lzb-cart-empty__icon svg {
  width: 64px;
  height: 64px;
}

.lzb-cart-empty__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #2e2e2e;
  margin: 0 0 8px;
}

.lzb-cart-empty__sub {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  color: #887870;
  margin: 0 0 32px;
  line-height: 1.6;
}

.lzb-cart-empty__btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #fffdfb;
  background: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-decoration: none;
  transition: background .35s;
}

.lzb-cart-empty__btn:hover {
  background: #d8a7b1;
}

/* ── Cart Table ── */
.lzb-cart .shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

/* Hide default table headers — we use a minimal header bar */
.lzb-cart .shop_table thead {
  display: table-header-group;
}

.lzb-cart .shop_table thead th {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #b5a89c;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(46,46,46,.08);
  text-align: left;
}

.lzb-cart .shop_table thead th.product-thumbnail { display: none; }
.lzb-cart .shop_table thead th.product-name { text-align: left; }
.lzb-cart .shop_table thead th.product-price,
.lzb-cart .shop_table thead th.product-quantity,
.lzb-cart .shop_table thead th.product-subtotal { text-align: center; }
.lzb-cart .shop_table thead th.product-remove { text-align: right; width: 40px; }

/* ── Cart Items (tbody rows) ── */
.lzb-cart .shop_table tbody tr {
  border-bottom: 1px solid rgba(216,167,177,.08);
  transition: background .2s;
}

.lzb-cart .shop_table tbody tr:hover {
  background: rgba(255,253,251,.4);
}

.lzb-cart .shop_table tbody td {
  padding: 20px 8px;
  vertical-align: middle;
}

/* Remove button */
.lzb-cart .shop_table .product-remove {
  text-align: right;
  width: 40px;
  padding-right: 0 !important;
}

.lzb-cart .shop_table .product-remove a,
.lzb-cart .shop_table .product-remove .remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 300;
  color: #b5a89c !important;
  text-decoration: none !important;
  background: transparent;
  border: none;
  border-radius: 50%;
  transition: all .25s;
  line-height: 1;
}

.lzb-cart .shop_table .product-remove a:hover,
.lzb-cart .shop_table .product-remove .remove:hover {
  color: #c0392b !important;
  background: rgba(192,57,43,.06);
}

/* Thumbnail */
.lzb-cart .shop_table .product-thumbnail {
  width: 88px;
  padding-left: 0 !important;
  line-height: 0;
}

.lzb-cart .shop_table .product-thumbnail img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  display: block;
  background: #f5f1ee;
}

.lzb-cart .shop_table .product-thumbnail a {
  display: block;
  line-height: 0;
}

/* Product Name */
.lzb-cart .shop_table .product-name {
  padding-left: 20px !important;
}

.lzb-cart .shop_table .product-name a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: #2e2e2e;
  text-decoration: none;
  line-height: 1.35;
  transition: color .25s;
}

.lzb-cart .shop_table .product-name a:hover {
  color: #d8a7b1;
}

.lzb-cart .shop_table .product-name .variation,
.lzb-cart .shop_table .product-name dl.variation {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 6px 0 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  color: #887870;
}

.lzb-cart .shop_table .product-name .variation dt,
.lzb-cart .shop_table .product-name .variation dd {
  margin: 0;
  display: inline;
}

.lzb-cart .shop_table .product-name .variation dt {
  font-weight: 500;
}

.lzb-cart .shop_table .product-name .variation dt::after {
  content: ':';
}

.lzb-cart .shop_table .product-name .backorder_notification {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  color: #d8a7b1;
}

/* Price */
.lzb-cart .shop_table .product-price,
.lzb-cart .shop_table .product-subtotal {
  text-align: center;
  min-width: 90px;
}

.lzb-cart .shop_table .product-price .woocommerce-Price-amount,
.lzb-cart .shop_table .product-subtotal .woocommerce-Price-amount {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2e2e2e;
}

.lzb-cart .shop_table .product-price ins,
.lzb-cart .shop_table .product-subtotal ins {
  text-decoration: none;
}

.lzb-cart .shop_table .product-price del,
.lzb-cart .shop_table .product-subtotal del {
  font-size: 12px;
  color: #b5a89c;
  margin-right: 4px;
}

/* ── Quantity in Cart ── */
.lzb-cart .shop_table .product-quantity {
  text-align: center;
}

.lzb-cart .shop_table .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(46,46,46,.12);
  margin: 0 auto;
}

.lzb-cart .shop_table .quantity .lzb-quantity {
  display: inline-flex;
  align-items: center;
  border: none;
}

.lzb-cart .shop_table .quantity .lzb-quantity__btn,
.lzb-cart .shop_table .quantity button.lzb-quantity__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  color: #2e2e2e;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
  line-height: 1;
}

.lzb-cart .shop_table .quantity .lzb-quantity__btn:hover {
  background: #f5f1ee;
}

.lzb-cart .shop_table .quantity .lzb-quantity__btn:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.lzb-cart .shop_table .quantity .lzb-quantity__input,
.lzb-cart .shop_table .quantity input.qty {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(46,46,46,.12);
  border-right: 1px solid rgba(46,46,46,.12);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #2e2e2e;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
  border-radius: 0;
}

.lzb-cart .shop_table .quantity input::-webkit-outer-spin-button,
.lzb-cart .shop_table .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Actions Row (Coupon + Update) ── */
.lzb-cart__actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 0;
  gap: 24px;
}

.lzb-cart .coupon {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 420px;
}

.lzb-cart .coupon .input-text {
  flex: 1;
  padding: 13px 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  color: #2e2e2e;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(46,46,46,.15);
  outline: none;
  transition: border-color .35s;
  border-radius: 0;
  min-width: 0;
}

.lzb-cart .coupon .input-text:focus {
  border-bottom-color: #2e2e2e;
}

.lzb-cart .coupon .input-text::placeholder {
  color: rgba(136,120,112,.4);
}

.lzb-cart .coupon .button,
.lzb-cart__btn--coupon {
  padding: 13px 24px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #2e2e2e;
  background: transparent;
  border: 1px solid rgba(46,46,46,.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
  border-radius: 0;
  line-height: 1.2;
}

.lzb-cart .coupon .button:hover,
.lzb-cart__btn--coupon:hover {
  background: #2e2e2e;
  color: #fffdfb;
  border-color: #2e2e2e;
}

/* Update cart button — subtle text style */
.lzb-cart__btn--update,
.lzb-cart button[name="update_cart"] {
  padding: 13px 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #887870;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all .3s;
  border-radius: 0;
  line-height: 1.2;
}

.lzb-cart__btn--update:hover,
.lzb-cart button[name="update_cart"]:hover {
  color: #2e2e2e;
  border-bottom-color: #2e2e2e;
}

/* Disabled state for update button */
.lzb-cart button[name="update_cart"]:disabled {
  opacity: .35;
  cursor: not-allowed;
  border-bottom-color: transparent;
}

/* ── Totals Card ── */
.lzb-cart__totals {
  background: #fffdfb;
  border: 1px solid rgba(216,167,177,.12);
  padding: 36px 32px;
  box-shadow: 0 2px 32px rgba(0,0,0,.04);
}

.lzb-cart__totals .cart_totals {
  width: 100%;
}

.lzb-cart__totals-title,
.lzb-cart .cart_totals h2 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216,167,177,.15);
}

/* Totals table */
.lzb-cart .cart_totals table,
.lzb-cart .shop_table.cart_totals {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.lzb-cart .cart_totals th,
.lzb-cart .cart_totals td {
  padding: 7px 0;
  text-align: left;
  font-family: 'Inter', -apple-system, sans-serif;
}

.lzb-cart .cart_totals th {
  font-size: 12px;
  font-weight: 400;
  color: #887870;
  letter-spacing: .3px;
  width: 40%;
}

.lzb-cart .cart_totals td {
  font-size: 13px;
  font-weight: 500;
  color: #2e2e2e;
  text-align: right;
}

.lzb-cart .cart_totals .woocommerce-shipping-destination {
  display: none;
}

.lzb-cart .cart_totals .shipping-calculator-button {
  display: inline-block;
  font-size: 10px;
  color: #d8a7b1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  transition: color .25s;
}

.lzb-cart .cart_totals .shipping-calculator-button:hover {
  color: #2e2e2e;
}

.lzb-cart .cart_totals .shipping-calculator-form {
  margin-top: 12px;
  padding: 16px;
  background: #faf8f5;
}

.lzb-cart .cart_totals .shipping-calculator-form .form-row {
  margin-bottom: 10px;
}

.lzb-cart .cart_totals .shipping-calculator-form select,
.lzb-cart .cart_totals .shipping-calculator-form input {
  width: 100%;
  padding: 10px 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  color: #2e2e2e;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(46,46,46,.15);
  outline: none;
  border-radius: 0;
}

.lzb-cart .cart_totals .shipping-calculator-form .button {
  padding: 10px 20px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #fffdfb;
  background: #2e2e2e;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background .35s;
  border-radius: 0;
}

.lzb-cart .cart_totals .shipping-calculator-form .button:hover {
  background: #d8a7b1;
}

/* Order Total */
.lzb-cart .cart_totals .order-total th,
.lzb-cart .cart_totals .order-total td {
  padding-top: 18px;
  margin-top: 12px;
  border-top: 2px solid rgba(46,46,46,.08);
  font-size: 15px;
  font-weight: 600;
  color: #2e2e2e;
}

.lzb-cart .cart_totals .order-total .woocommerce-Price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

/* Discount rows */
.lzb-cart .cart_totals .cart-discount td .woocommerce-Price-amount {
  color: #d8a7b1;
}

/* ── Checkout Button ── */
.lzb-cart__checkout-btn,
.lzb-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 18px 0;
  margin-top: 24px;
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fffdfb;
  background: #2e2e2e;
  border: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s, transform .15s;
  border-radius: 0;
}

.lzb-cart__checkout-btn:hover,
.lzb-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: #d8a7b1;
}

.lzb-cart__checkout-btn:active,
.lzb-cart .wc-proceed-to-checkout .checkout-button:active {
  transform: scale(.985);
}

/* ── Continue Shopping ── */
.lzb-cart__continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #887870;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color .3s;
}

.lzb-cart__continue:hover {
  color: #2e2e2e;
}

.lzb-cart__continue svg {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}

.lzb-cart__continue:hover svg {
  transform: translateX(-3px);
}

/* ── Cross-Sells ── */
.lzb-cart__cross-sells {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid rgba(46,46,46,.06);
}

.lzb-cart__cross-sells .cross-sells h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #2e2e2e;
  margin: 0 0 8px;
}

.lzb-cart__cross-subs {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  color: #887870;
  margin: 0 0 32px;
}

/* Cross-sell products grid */
.lzb-cart__cross-sells ul.products,
.lzb-cart .cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lzb-cart__cross-sells ul.products li,
.lzb-cart .cross-sells ul.products li {
  list-style: none;
}

/* ── Notices ── */
.lzb-cart .woocommerce-error,
.lzb-cart .woocommerce-info,
.lzb-cart .woocommerce-message,
.lzb-cart .woocommerce-notices-wrapper .woocommerce-message {
  padding: 16px 20px;
  margin-bottom: 28px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  background: #fffdfb;
  border-left: 3px solid #d8a7b1;
  color: #2e2e2e;
  list-style: none;
}

.lzb-cart .woocommerce-error {
  border-left-color: #c0392b;
  background: #fefafa;
}

.lzb-cart .woocommerce-message {
  border-left-color: #7fb380;
  background: #f8fcf8;
}

.lzb-cart .woocommerce-message .button,
.lzb-cart .woocommerce-info .button,
.lzb-cart .woocommerce-error .button {
  float: right;
  padding: 6px 18px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
}

/* ── Back Link ── */
.lzb-cart__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #887870;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color .3s;
}

.lzb-cart__back:hover {
  color: #2e2e2e;
}

.lzb-cart__back svg {
  width: 14px;
  height: 14px;
}

/* ── Payment Icons Row ── */
.lzb-cart__payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(46,46,46,.06);
}

.lzb-cart__payment-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10px;
  color: #b5a89c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.lzb-cart__payment-icons img,
.lzb-cart__payment-icons svg {
  height: 16px;
  width: auto;
  opacity: .5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lzb-cart__layout {
    flex-direction: column;
    gap: 48px;
  }
  .lzb-cart__sidebar {
    width: 100%;
    position: static;
  }
  .lzb-cart__inner {
    padding: 120px 32px 64px;
  }
}

@media (max-width: 768px) {
  .lzb-cart__inner {
    padding: 110px 20px 56px;
  }
  .lzb-cart__title {
    font-size: 30px;
  }
  .lzb-cart__subtitle {
    margin-bottom: 32px;
    font-size: 12px;
  }

  /* Responsive table → cards */
  .lzb-cart .shop_table thead {
    display: none;
  }
  .lzb-cart .shop_table tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 0;
    position: relative;
  }
  .lzb-cart .shop_table tbody td {
    padding: 6px 0;
  }
  .lzb-cart .shop_table .product-remove {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 2;
    width: auto;
  }
  .lzb-cart .shop_table .product-thumbnail {
    width: 72px;
    padding-right: 14px !important;
  }
  .lzb-cart .shop_table .product-thumbnail img {
    width: 72px;
    height: 96px;
  }
  .lzb-cart .shop_table .product-name {
    flex: 1;
    padding-left: 0 !important;
    padding-right: 40px !important;
  }
  .lzb-cart .shop_table .product-price,
  .lzb-cart .shop_table .product-quantity,
  .lzb-cart .shop_table .product-subtotal {
    text-align: left;
    min-width: auto;
  }
  .lzb-cart .shop_table .product-price::before {
    content: 'Price: ';
    font-size: 10px;
    color: #887870;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .lzb-cart .shop_table .product-subtotal::before {
    content: 'Subtotal: ';
    font-size: 10px;
    color: #887870;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .lzb-cart .shop_table .product-price,
  .lzb-cart .shop_table .product-subtotal {
    width: 50%;
    padding-top: 12px;
  }
  .lzb-cart .shop_table .product-quantity {
    width: 100%;
    text-align: left;
    padding-top: 12px;
  }
  .lzb-cart .shop_table .product-quantity::before {
    content: 'Qty: ';
    font-size: 10px;
    color: #887870;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .lzb-cart__actions {
    flex-direction: column;
  }
  .lzb-cart .coupon {
    max-width: 100%;
  }
  .lzb-cart__cross-sells ul.products,
  .lzb-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .lzb-cart__inner {
    padding: 105px 16px 40px;
  }
  .lzb-cart__title {
    font-size: 26px;
  }
  .lzb-cart__totals {
    padding: 24px 20px;
  }
  .lzb-cart__cross-sells ul.products,
  .lzb-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
