/* FoodMart — checkout/cart + account/wishlist (shared table layout) */

.hk-page-cart .hk-fm-cart,
.hk-page-wishlist .hk-fm-wishlist {
  margin: 0 auto 3rem;
  max-width: 1080px;
}

.hk-page-cart .hk-catalog-page__head,
.hk-page-wishlist .hk-catalog-page__head {
  margin-bottom: 1.25rem;
}

.hk-page-cart .hk-catalog-page__title,
.hk-page-wishlist .hk-catalog-page__title {
  color: var(--dark-color, #222);
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.hk-page-cart #checkout-cart .hk-checkout-cart__totals {
  margin-top: 1.5rem;
}

.hk-page-cart #checkout-cart .hk-checkout-cart__actions {
  border-top: 1px solid rgba(15, 17, 21, 0.08);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.hk-page-cart #checkout-cart .hk-cart-empty,
.hk-page-wishlist #account-wishlist .hk-cart-empty {
  align-items: center;
  background: var(--light-grey-color, #fafafa);
  border: 1px dashed rgba(15, 17, 21, 0.12);
  border-radius: 0.85rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: clamp(2.25rem, 5vw, 3.25rem) 1.5rem;
  text-align: center;
}

.hk-page-cart #checkout-cart .hk-cart-empty__icon-wrap,
.hk-page-wishlist #account-wishlist .hk-cart-empty__icon-wrap {
  align-items: center;
  background: rgba(153, 194, 41, 0.14);
  border-radius: 50%;
  color: var(--hk-bc-green, #99c229);
  display: flex;
  height: 4.75rem;
  justify-content: center;
  margin-bottom: 1.15rem;
  width: 4.75rem;
}

.hk-page-cart #checkout-cart .hk-cart-empty__icon,
.hk-page-wishlist #account-wishlist .hk-cart-empty__icon {
  display: block;
  opacity: 0.92;
}

.hk-page-cart #checkout-cart .hk-cart-empty__title,
.hk-page-wishlist #account-wishlist .hk-cart-empty__title {
  color: var(--dark-color, #222);
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.hk-page-cart #checkout-cart .hk-cart-empty__hint,
.hk-page-wishlist #account-wishlist .hk-cart-empty__hint {
  color: var(--light-dark-color, #727272);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 auto 1.35rem;
  max-width: 24rem;
}

.hk-page-cart #checkout-cart .hk-cart-empty__actions,
.hk-page-wishlist #account-wishlist .hk-cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hk-page-cart #checkout-cart .hk-cart-empty__actions .hk-account-edit__btn--primary,
.hk-page-wishlist #account-wishlist .hk-cart-empty__actions .hk-account-edit__btn--primary {
  min-width: 11rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.hk-page-cart #checkout-cart .hk-wishlist__table,
.hk-page-wishlist #account-wishlist .hk-wishlist__table {
  border: 1px solid var(--hk-line, #eaeae4);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.85rem;
  overflow: hidden;
}

.hk-page-cart #checkout-cart .hk-wishlist__table thead th,
.hk-page-wishlist #account-wishlist .hk-wishlist__table thead th {
  border-top: 0;
}

.hk-page-cart #checkout-cart .hk-wishlist__table tbody tr:last-child td,
.hk-page-wishlist #account-wishlist .hk-wishlist__table tbody tr:last-child td {
  border-bottom: 0;
}

.hk-page-cart #checkout-cart .hk-wishlist__table thead th:first-child,
.hk-page-cart #checkout-cart .hk-wishlist__table tbody td:first-child,
.hk-page-wishlist #account-wishlist .hk-wishlist__table thead th:first-child,
.hk-page-wishlist #account-wishlist .hk-wishlist__table tbody td:first-child {
  padding-left: 1.15rem;
}

.hk-page-cart #checkout-cart .hk-wishlist__table thead th:last-child,
.hk-page-cart #checkout-cart .hk-wishlist__table tbody td:last-child,
.hk-page-wishlist #account-wishlist .hk-wishlist__table thead th:last-child,
.hk-page-wishlist #account-wishlist .hk-wishlist__table tbody td:last-child {
  padding-right: 1.15rem;
}

.hk-page-cart #checkout-cart .hk-wishlist__table td .input-group > .form-control.hk-cart-qty-input {
  border: 1px solid rgba(15, 17, 21, 0.16);
  box-shadow: none;
  color: var(--dark-color, #222);
}

.hk-page-cart #checkout-cart .hk-wishlist__table td .input-group > .form-control.hk-cart-qty-input:focus {
  border-color: rgba(15, 17, 21, 0.26);
  box-shadow: none;
  outline: 0;
}

.hk-page-cart #checkout-cart .hk-wishlist__table .input-group .btn-primary,
.hk-page-wishlist #account-wishlist .hk-wishlist__table .input-group .btn-primary {
  background: var(--hk-bc-green, #99c229);
  border-color: var(--hk-bc-green, #99c229);
  color: #fff;
}

.hk-page-cart #checkout-cart .hk-wishlist__table .input-group .btn-primary:hover,
.hk-page-cart #checkout-cart .hk-wishlist__table .input-group .btn-primary:focus,
.hk-page-wishlist #account-wishlist .hk-wishlist__table .input-group .btn-primary:hover,
.hk-page-wishlist #account-wishlist .hk-wishlist__table .input-group .btn-primary:focus {
  background: var(--hk-bc-green-hover, #7da622);
  border-color: var(--hk-bc-green-hover, #7da622);
  color: #fff;
}

.hk-page-wishlist #account-wishlist .hk-wishlist__actions.input-group {
  display: inline-flex;
  flex-wrap: nowrap;
  margin-left: auto;
  max-width: 220px;
  vertical-align: middle;
  width: auto;
}

.hk-page-wishlist #account-wishlist .hk-wishlist__actions .input-group-btn .btn-danger {
  background: #fff;
  border-bottom-left-radius: 0;
  border-color: rgba(15, 17, 21, 0.16);
  border-left: 0;
  border-top-left-radius: 0;
  color: #c0392b;
}

.hk-page-wishlist #account-wishlist .hk-wishlist__actions .input-group-btn .btn-danger:hover,
.hk-page-wishlist #account-wishlist .hk-wishlist__actions .input-group-btn .btn-danger:focus {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.35);
  color: #962d22;
}

.hk-page-wishlist #account-wishlist .hk-wishlist__actions > .btn-primary {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

@media (max-width: 768px) {
  .hk-page-cart #checkout-cart .hk-wishlist__table thead,
  .hk-page-wishlist #account-wishlist .hk-wishlist__table thead {
    display: none;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__table tbody tr,
  .hk-page-wishlist #account-wishlist .hk-wishlist__table tbody tr {
    background: #fff;
    border: 1px solid rgba(15, 17, 21, 0.08);
    border-radius: 0.85rem;
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__table tbody td,
  .hk-page-wishlist #account-wishlist .hk-wishlist__table tbody td {
    align-items: flex-start;
    border-bottom: 1px solid rgba(15, 17, 21, 0.06);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.65rem 0;
    text-align: right !important;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__table tbody td:last-child,
  .hk-page-wishlist #account-wishlist .hk-wishlist__table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__table tbody td::before,
  .hk-page-wishlist #account-wishlist .hk-wishlist__table tbody td::before {
    color: var(--light-dark-color, #727272);
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    max-width: 42%;
    text-align: left;
    text-transform: uppercase;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__cell-image,
  .hk-page-wishlist #account-wishlist .hk-wishlist__cell-image {
    justify-content: center;
  }

  .hk-page-cart #checkout-cart .hk-wishlist__cell-image::before,
  .hk-page-wishlist #account-wishlist .hk-wishlist__cell-image::before {
    display: none;
  }
}
