/* ─── Kromar Next: Cart + Checkout visual alignment ───────────────── */
/* CartPage / CheckoutPage keep their (tf-*) markup + business logic; this file gives   */
/* them the Kromar look from kromar-grocee.css (.primary__btn, .checkout__* / .cart__*): */
/* dark #282828 primary button, cream accents, 1px #c7c7c7 inputs, shadowed summary.    */
/* Scoped under .kromar-cart-page / .kromar-checkout-page — never leaks to other pages. */

.kromar-cart-page,
.kromar-checkout-page {
  /* Sellzy-era tokens still referenced by inline styles in the pages */
  --primary: var(--secondary-color, #282828);
  --line: var(--border-color, #c7c7c7);
  --kc-accent: var(--cream-color, #f8dfb8);
  --kc-dark: var(--secondary-color, #282828);
  --kc-border: var(--border-color, #c7c7c7);
  --kc-text: var(--body-text-color, #1f2020);
  --kc-muted: #6b6b6b;

  color: var(--kc-text);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 6rem;
}

/* ─── Spacing utilities used by the markup (not part of Bootstrap) ─── */
.kromar-cart-page .mb_10, .kromar-checkout-page .mb_10 { margin-bottom: 10px; }
.kromar-cart-page .mb_15, .kromar-checkout-page .mb_15 { margin-bottom: 15px; }
.kromar-cart-page .mb_20, .kromar-checkout-page .mb_20 { margin-bottom: 20px; }
.kromar-cart-page .mt_20, .kromar-checkout-page .mt_20 { margin-top: 20px; }
.kromar-cart-page .pb_20, .kromar-checkout-page .pb_20 { padding-bottom: 20px; }
.kromar-cart-page .gap-15, .kromar-checkout-page .gap-15 { gap: 15px; }
.kromar-cart-page .fs-18, .kromar-checkout-page .fs-18 { font-size: 18px; }
.kromar-cart-page .fw-4, .kromar-checkout-page .fw-4 { font-weight: 400; }
.kromar-cart-page .fw-5, .kromar-checkout-page .fw-5 { font-weight: 500; }
.kromar-cart-page .fw-6, .kromar-checkout-page .fw-6 { font-weight: 600; }
.kromar-cart-page .text_black-2, .kromar-checkout-page .text_black-2 { color: var(--kc-muted); }
.kromar-cart-page .link, .kromar-checkout-page .link { color: inherit; text-decoration: underline; cursor: pointer; }
.kromar-cart-page .link:hover, .kromar-checkout-page .link:hover { color: var(--kc-dark); }

/* ─── Page title band ─────────────────────────────────────────────── */
.kromar-cart-page .tf-page-title,
.kromar-checkout-page .tf-page-title {
  padding: 3.2rem 0;
  margin-bottom: 3.2rem;
  background: var(--kc-accent);
  border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}
.kromar-cart-page .tf-page-title .container-full,
.kromar-checkout-page .tf-page-title .container-full {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}
.kromar-cart-page .tf-page-title .heading,
.kromar-checkout-page .tf-page-title .heading {
  margin: 0;
  color: var(--kc-dark);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}
.kromar-cart-page .flat-spacing-11,
.kromar-checkout-page .flat-spacing-11 {
  padding: 0 0 4rem;
}

/* ─── Two-column wrap: items + summary ────────────────────────────── */
.kromar-cart-page .tf-page-cart-wrap,
.kromar-checkout-page .tf-page-cart-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}
.kromar-cart-page .tf-page-cart-item,
.kromar-checkout-page .tf-page-cart-item {
  flex: 1 1 0;
  min-width: 0;
}
.kromar-cart-page .tf-page-cart-footer,
.kromar-checkout-page .tf-page-cart-footer {
  flex: 0 0 38rem;
  max-width: 100%;
  position: sticky;
  top: 2rem;
  background: var(--body-background-color, #fff);
  box-shadow: 0 2px 22px rgba(0, 0, 0, 0.16);
  padding: 3rem 2.5rem;
}
.kromar-cart-page .tf-cart-footer-inner,
.kromar-checkout-page .tf-cart-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
@media (max-width: 991px) {
  .kromar-cart-page .tf-page-cart-item,
  .kromar-checkout-page .tf-page-cart-item,
  .kromar-cart-page .tf-page-cart-footer,
  .kromar-checkout-page .tf-page-cart-footer {
    flex: 1 1 100%;
    position: static;
  }
  .kromar-cart-page .tf-page-cart-footer,
  .kromar-checkout-page .tf-page-cart-footer {
    padding: 3rem 1.8rem;
  }
}

/* ─── Primary / outline buttons (.primary__btn look) ──────────────── */
.kromar-cart-page .tf-btn,
.kromar-checkout-page .tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 4.6rem;
  padding: 0 3rem;
  border: 1px solid var(--kc-dark);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--kc-dark);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease 0s);
}
.kromar-cart-page .tf-btn.btn-fill,
.kromar-checkout-page .tf-btn.btn-fill,
.kromar-cart-page .primary__btn,
.kromar-checkout-page .primary__btn {
  background: var(--kc-dark);
  border-color: var(--kc-dark);
  color: #fff;
}
.kromar-cart-page .tf-btn.btn-fill:hover:not(:disabled),
.kromar-checkout-page .tf-btn.btn-fill:hover:not(:disabled),
.kromar-cart-page .primary__btn:hover:not(:disabled),
.kromar-checkout-page .primary__btn:hover:not(:disabled) {
  background: var(--primary-color, #3c3c3c);
  border-color: var(--primary-color, #3c3c3c);
  color: #fff;
}
.kromar-cart-page .tf-btn.btn-outline:hover,
.kromar-checkout-page .tf-btn.btn-outline:hover {
  background: var(--kc-dark);
  color: #fff;
}
.kromar-cart-page .tf-btn:disabled,
.kromar-checkout-page .tf-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.kromar-cart-page .tf-btn.w-100,
.kromar-checkout-page .tf-btn.w-100 {
  display: flex;
  width: 100%;
}
.kromar-cart-page .btn-link,
.kromar-checkout-page .btn-link {
  color: var(--kc-dark);
  text-decoration: underline;
}

/* ─── Cart table ──────────────────────────────────────────────────── */
.kromar-cart-page .tf-table-page-cart {
  width: 100%;
  border-collapse: collapse;
}
.kromar-cart-page .tf-table-page-cart th {
  padding: 0 2rem 2rem 0;
  border-bottom: 1px solid var(--kc-border);
  text-align: left;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 600;
}
.kromar-cart-page .tf-table-page-cart td {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid #ececec;
  vertical-align: middle;
}
.kromar-cart-page .tf-cart-item_product {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-width: 26rem;
}
.kromar-cart-page .tf-cart-item_product .img-box {
  flex: 0 0 10rem;
  max-width: 10rem;
  display: block;
  line-height: 0;
  border: 1px solid #ececec;
}
.kromar-cart-page .tf-cart-item_product .img-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.kromar-cart-page .cart-title {
  display: block;
  color: var(--kc-dark);
  font-weight: 600;
  text-decoration: none;
}
.kromar-cart-page .cart-title:hover {
  text-decoration: underline;
}
.kromar-cart-page .cart-meta-variant {
  margin-top: 4px;
  color: var(--kc-muted);
  font-size: 1.3rem;
}
.kromar-cart-page .remove-cart {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.3rem;
  color: var(--kc-muted);
}
.kromar-cart-page .cart-price,
.kromar-cart-page .cart-total {
  font-weight: 600;
  white-space: nowrap;
}

/* Quantity stepper */
.kromar-cart-page .wg-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--kc-border);
  height: 4.2rem;
}
.kromar-cart-page .wg-quantity .btn-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 100%;
  cursor: pointer;
  user-select: none;
}
.kromar-cart-page .wg-quantity .btn-quantity:hover {
  background: var(--kc-accent);
}
.kromar-cart-page .wg-quantity input {
  width: 4.4rem;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--kc-border);
  border-right: 1px solid var(--kc-border);
  background: #fff;
  text-align: center;
  font-weight: 600;
}
.kromar-cart-page .wg-quantity input:focus {
  outline: none;
}

@media (max-width: 767px) {
  .kromar-cart-page .tf-table-page-cart thead {
    display: none;
  }
  .kromar-cart-page .tf-table-page-cart tr.tf-cart-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid #ececec;
  }
  .kromar-cart-page .tf-table-page-cart td {
    padding: 0;
    border: 0;
  }
  .kromar-cart-page .tf-cart-item_product {
    flex: 1 1 100%;
    min-width: 0;
  }
  .kromar-cart-page .tf-cart-item_price[cart-data-title]::before,
  .kromar-cart-page .tf-cart-item_quantity[cart-data-title]::before,
  .kromar-cart-page .tf-cart-item_total[cart-data-title]::before {
    content: attr(cart-data-title) ": ";
    color: var(--kc-muted);
    font-size: 1.3rem;
  }
}

/* ─── Cart summary card ───────────────────────────────────────────── */
.kromar-cart-page .tf-free-shipping-bar {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #ececec;
}
.kromar-cart-page .tf-progress-bar {
  position: relative;
  height: 6px;
  margin-bottom: 1.4rem;
  border-radius: 6px;
  background: #ececec;
}
.kromar-cart-page .tf-progress-bar > span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 6px;
  border-radius: 6px;
  background: var(--kc-dark);
  transition: width 0.4s ease;
}
.kromar-cart-page .tf-progress-bar .progress-car {
  position: absolute;
  top: 50%;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--kc-accent);
  color: var(--kc-dark);
}
.kromar-cart-page .tf-progress-msg {
  font-size: 1.4rem;
  color: var(--kc-muted);
}
.kromar-cart-page .tf-cart-totals-discounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.kromar-cart-page .tf-cart-totals-discounts h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}
.kromar-cart-page .tf-cart-totals-discounts .total-value {
  font-size: 2rem;
  font-weight: 700;
}
.kromar-cart-page .tf-cart-tax {
  margin: 0 0 1.4rem;
  color: var(--kc-muted);
  font-size: 1.3rem;
}
.kromar-cart-page .cart-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 1.6rem;
  font-size: 1.4rem;
}

/* ─── Checkout: forms (.checkout__input--field look) ──────────────── */
.kromar-checkout-page .form-checkout .box {
  margin-bottom: 1.6rem;
}
.kromar-checkout-page .form-checkout .grid-2,
.kromar-checkout-page .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.6rem;
}
@media (max-width: 575px) {
  .kromar-checkout-page .grid-2 {
    grid-template-columns: 1fr;
  }
}
.kromar-checkout-page fieldset {
  min-width: 0;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
}
.kromar-checkout-page fieldset > label,
.kromar-checkout-page .label {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--kc-text);
}
.kromar-checkout-page .form-checkout input[type="text"],
.kromar-checkout-page .form-checkout input[type="email"],
.kromar-checkout-page .form-checkout input[type="tel"],
.kromar-checkout-page .form-checkout input[type="number"],
.kromar-checkout-page .form-checkout select,
.kromar-checkout-page .form-checkout textarea,
.kromar-checkout-page .tf-field-input {
  display: block;
  width: 100%;
  height: 4.5rem;
  padding: 0 1.5rem;
  border: 1px solid var(--kc-border);
  border-radius: 0;
  background: #fff;
  color: var(--kc-text);
  font-size: 1.5rem;
}
.kromar-checkout-page .form-checkout textarea {
  height: auto;
  min-height: 9rem;
  padding: 1rem 1.5rem;
  resize: vertical;
}
.kromar-checkout-page .form-checkout input:focus,
.kromar-checkout-page .form-checkout select:focus,
.kromar-checkout-page .form-checkout textarea:focus,
.kromar-checkout-page .tf-field-input:focus {
  outline: none;
  border-color: var(--kc-dark);
}
.kromar-checkout-page h5 {
  font-size: 2rem;
  font-weight: 700;
}
.kromar-checkout-page h6 {
  font-size: 1.6rem;
}

/* Radios / checkboxes (.checkout__checkbox look) */
.kromar-cart-page .tf-check,
.kromar-checkout-page .tf-check {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0.3rem 0 0;
  accent-color: var(--kc-dark);
  cursor: pointer;
}
.kromar-checkout-page .fieldset-radio,
.kromar-checkout-page .box-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.kromar-checkout-page .fieldset-radio label,
.kromar-checkout-page .box-checkbox label {
  margin: 0;
  cursor: pointer;
}

/* ─── Checkout: order summary (.checkout__sidebar look) ───────────── */
.kromar-checkout-page .wrap-checkout-product {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 0 0 2rem;
  padding: 0 0 2rem;
  list-style: none;
  border-bottom: 1px solid #ececec;
}
.kromar-checkout-page .checkout-product-item {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.kromar-checkout-page .checkout-product-item .img-product {
  position: relative;
  flex: 0 0 7rem;
  max-width: 7rem;
  margin: 0;
  line-height: 0;
  border: 1px solid #ececec;
}
.kromar-checkout-page .checkout-product-item .img-product img {
  width: 100%;
  height: auto;
}
.kromar-checkout-page .checkout-product-item .quantity {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border-radius: 2.2rem;
  background: var(--kc-dark);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.kromar-checkout-page .checkout-product-item .content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.kromar-checkout-page .checkout-product-item .name {
  margin: 0;
  font-weight: 600;
}
.kromar-checkout-page .checkout-product-item .variant {
  display: block;
  color: var(--kc-muted);
  font-size: 1.3rem;
}
.kromar-checkout-page .checkout-product-item .price {
  font-weight: 600;
  white-space: nowrap;
}
.kromar-checkout-page .wd-check-payment {
  margin-bottom: 2rem;
}
.kromar-checkout-page .line {
  border-bottom: 1px solid #ececec;
  margin-bottom: 2rem;
}
.kromar-checkout-page .total {
  font-weight: 700;
}

/* Address picker cards inherit Kromar border color via --primary / --line */
.kromar-checkout-page .text-danger {
  color: #dc3545 !important;
}
