/* Cart / Checkout storefront — typography matches site (Poppins) */
:root {
  --chk-ink: #333333;
  --chk-muted: #666666;
  --chk-line: #e6ebf2;
  --chk-soft: #f5f7fb;
  --chk-brand: #003868;
  --chk-brand-dark: #002848;
  --chk-brand-soft: #e6eef6;
  --chk-radius: 16px;
  --chk-font: 'Poppins', sans-serif;
}

.chk-page {
  padding: 24px 0 56px;
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 240px);
  min-height: 70vh;
  font-family: var(--chk-font);
  font-weight: 300;
  font-size: 16px;
  color: var(--chk-ink);
  line-height: 1.5;
}

.chk-page h1,
.chk-page h2,
.chk-page h3,
.chk-page h4,
.chk-page p,
.chk-page span,
.chk-page label,
.chk-page strong,
.chk-page em,
.chk-page small,
.chk-page a,
.chk-page button,
.chk-page input,
.chk-page select,
.chk-page textarea {
  font-family: var(--chk-font);
}

.chk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--chk-muted);
  margin-bottom: 16px;
}
.chk-breadcrumb a {
  color: var(--chk-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
}
.chk-breadcrumb a:hover { color: var(--chk-brand); }

.chk-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.chk-page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--chk-ink);
  letter-spacing: normal;
  text-align: left;
  line-height: 1.3;
}
.chk-page-head p {
  margin: 6px 0 0;
  color: var(--chk-muted);
  font-size: 14px;
  font-weight: 300;
}
.chk-link {
  color: var(--chk-brand);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}

.chk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.chk-card {
  background: #fff;
  border: 1px solid var(--chk-line);
  border-radius: var(--chk-radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.04);
}
.chk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.chk-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--chk-ink);
  text-align: left;
  letter-spacing: normal;
}
.chk-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--chk-brand-soft);
  color: var(--chk-brand);
  font-size: 12px;
  font-weight: 600;
}

.chk-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--chk-line);
}
.chk-item:first-of-type { border-top: 0; padding-top: 0; }
.chk-item-media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chk-soft);
  border: 1px solid var(--chk-line);
  flex-shrink: 0;
}
.chk-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chk-item-body { flex: 1; min-width: 0; }
.chk-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.chk-item-top > div {
  min-width: 0;
  flex: 1;
}
.chk-item-top h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--chk-ink);
  text-align: left;
  line-height: 1.4;
}
.chk-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--chk-muted);
  font-size: 13px;
  font-weight: 300;
}
.chk-item-total {
  font-size: 16px;
  font-weight: 600;
  color: var(--chk-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.chk-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.chk-qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chk-qty label {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--chk-muted);
}
.chk-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--chk-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.chk-qty-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: var(--chk-soft);
  color: var(--chk-ink);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--chk-font);
  line-height: 1;
  flex-shrink: 0;
}
.chk-qty-controls input {
  width: 48px;
  height: 34px;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--chk-font);
  -moz-appearance: textfield;
  appearance: textfield;
}
.chk-qty-controls input::-webkit-outer-spin-button,
.chk-qty-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.chk-unit {
  font-size: 13px;
  font-weight: 300;
  color: var(--chk-muted);
}
.chk-remove {
  border: 0;
  background: transparent;
  color: #be123c;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  font-family: var(--chk-font);
}

.chk-address {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--chk-line);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fff;
}
.chk-address.active,
.chk-address:has(input:checked) {
  border-color: var(--chk-brand);
  background: var(--chk-brand-soft);
}
.chk-address input {
  margin-top: 4px;
  accent-color: var(--chk-brand);
}
.chk-address-body { flex: 1; min-width: 0; }
.chk-address-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.chk-address-top strong {
  color: var(--chk-ink);
  font-size: 15px;
  font-weight: 500;
}
.chk-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--chk-soft);
  color: var(--chk-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}
.chk-edit {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--chk-brand);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  font-family: var(--chk-font);
}
.chk-address p {
  margin: 0 0 10px;
  color: var(--chk-ink);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}
.chk-deliver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--chk-line);
  background: #fff;
  color: var(--chk-ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--chk-font);
}
.chk-deliver.active,
.deliver__button.active {
  background: var(--chk-brand);
  border-color: var(--chk-brand);
  color: #fff;
}

.chk-address-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--chk-line);
}
.chk-address-form h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
  color: var(--chk-ink);
}
.chk-address-form .form-label,
.chk-address-form label {
  font-size: 14px;
  font-weight: 400;
  color: var(--chk-ink);
}
.chk-address-form .form-control,
.chk-address-form .form-select {
  font-family: var(--chk-font);
  font-size: 14px;
  font-weight: 300;
  color: var(--chk-ink);
}
.chk-muted { color: var(--chk-muted); font-size: 14px; font-weight: 300; }

.chk-ship-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--chk-line);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}
.chk-ship-option:has(input:checked) {
  border-color: var(--chk-brand);
  background: var(--chk-brand-soft);
}
.chk-ship-option input {
  accent-color: var(--chk-brand);
}
.chk-ship-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
}
.chk-ship-option small {
  color: var(--chk-muted);
  font-size: 12px;
  font-weight: 300;
}
.chk-ship-option em {
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--chk-ink);
}
.chk-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chk-pay-option strong {
  font-size: 14px;
  font-weight: 600;
}

.chk-btn,
.chk-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-family: var(--chk-font);
}
.chk-btn {
  background: var(--chk-brand);
  color: #fff !important;
}
.chk-btn:hover { background: var(--chk-brand-dark); color: #fff !important; }
.chk-btn-outline {
  background: #fff;
  color: var(--chk-ink) !important;
  border: 1px solid var(--chk-line);
}
.chk-btn-outline:hover {
  border-color: var(--chk-brand);
  color: var(--chk-brand) !important;
}
.chk-pay-mobile { display: none; width: 100%; margin-top: 8px; }
.chk-pay-anchor { display: none; }

.chk-aside .chk-summary { position: sticky; top: 88px; }
.chk-summary-list {
  border-top: 1px solid var(--chk-line);
  border-bottom: 1px solid var(--chk-line);
  padding: 8px 0;
  margin-bottom: 8px;
  max-height: 220px;
  overflow: auto;
}
.chk-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--chk-ink);
}
.chk-summary-row span { color: var(--chk-muted); font-size: 14px; }
.chk-summary-row strong {
  font-size: 14px;
  font-weight: 600;
}
.chk-grand {
  border-top: 1px dashed var(--chk-line);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 16px;
}
.chk-grand span,
.chk-grand strong {
  color: var(--chk-ink);
  font-weight: 600;
  font-size: 16px;
}
.chk-secure {
  margin: 12px 0 0;
  text-align: center;
  color: var(--chk-muted);
  font-size: 12px;
  font-weight: 300;
}

.chk-empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--chk-line);
  border-radius: var(--chk-radius);
  background: #fff;
}
.chk-empty i {
  font-size: 2rem;
  color: var(--chk-muted);
}
.chk-empty h2 {
  margin: 12px 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--chk-ink);
  text-align: center;
}
.chk-empty p {
  color: var(--chk-muted);
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 300;
}

.chk-related {
  margin-top: 36px;
  padding-top: 8px;
}
.chk-related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.chk-related-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--chk-ink);
  text-align: left;
  letter-spacing: normal;
}
.chk-related-head p {
  margin: 4px 0 0;
  color: var(--chk-muted);
  font-size: 14px;
  font-weight: 300;
}
.chk-related-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--chk-line);
  border-radius: 14px;
  overflow: hidden;
}
.chk-related .product__card p.mb-1,
.chk-related-card > p.mb-1 {
  font-size: 16px;
  font-weight: 300;
  color: var(--chk-ink);
  margin-bottom: 0.25rem !important;
}
.chk-related .products-card__price,
.chk-related .price,
.chk-related .pricetxt {
  font-size: 15px;
  font-weight: 600;
  color: var(--chk-ink);
}
.chk-related .products-card__price strike {
  font-size: 13px;
  font-weight: 300;
  color: var(--chk-muted);
}
.chk-related .rating-number {
  font-size: 13px;
  font-weight: 300;
}
.chk-related .product__card__img > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.chk-related .product-icons {
  opacity: 1;
  visibility: visible;
}
.chk-related .product-icons .btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chk-related .product-icons img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  border-radius: 0 !important;
}
.chk-swiper-btn {
  color: var(--chk-ink) !important;
}
.chk-swiper-btn::after {
  font-size: 18px !important;
  font-weight: 700;
}

.chk-page .alert {
  font-family: var(--chk-font);
  font-size: 14px;
  font-weight: 300;
}

@media (max-width: 991px) {
  .chk-layout { grid-template-columns: 1fr; }
  .chk-aside .chk-summary { position: static; }
  .chk-pay-anchor { display: block; }
  .chk-pay-mobile { display: inline-flex; }
  #payment-button-desktop { display: none; }
  .chk-pay-anchor.is-fixed {
    min-height: 56px;
  }
  .chk-pay-anchor.is-fixed .chk-pay-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    width: auto;
    margin: 0;
    border-radius: 0;
    padding: 16px 18px;
    box-shadow: 0 -10px 24px rgba(14, 59, 44, 0.16);
  }
  body.has-mobile-tabbar.chk-pay-pinned {
    padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  .chk-page {
    padding: 12px 0 32px;
    font-size: 14px;
  }
  .chk-page .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .chk-page-head {
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 8px;
  }
  .chk-page-head > div {
    flex: 1 1 100%;
  }
  .chk-page-head h1 {
    font-size: 20px;
  }
  .chk-page-head p {
    font-size: 13px;
  }
  .chk-card {
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .chk-card-head {
    margin-bottom: 10px;
  }
  .chk-card-head h2 {
    font-size: 16px;
  }
  .chk-item {
    gap: 10px;
    padding: 12px 0;
    align-items: flex-start;
  }
  .chk-item-media {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
  .chk-item-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .chk-item-top h3 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
  }
  .chk-item-meta {
    gap: 6px;
    font-size: 12px;
  }
  .chk-item-total {
    font-size: 14px;
    padding-top: 1px;
  }
  .chk-item-actions {
    margin-top: 8px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .chk-qty {
    gap: 0;
    flex: 1;
    min-width: 0;
  }
  .chk-qty label,
  .chk-unit {
    display: none;
  }
  .chk-qty-controls {
    border-radius: 8px;
  }
  .chk-qty-btn {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .chk-qty-controls input {
    width: 36px;
    height: 30px;
    font-size: 13px;
    padding: 0;
  }
  .chk-remove {
    font-size: 12px;
    white-space: nowrap;
  }
  .chk-address {
    gap: 10px;
    padding: 12px;
  }
  .chk-address-top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .chk-deliver {
    width: 100%;
    justify-content: center;
  }
  .chk-summary-row {
    font-size: 13px;
  }
  .chk-grand {
    font-size: 15px;
  }
  .chk-related-head h2 {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .chk-page { padding: 12px 0 28px; }
  .chk-page-head h1 { font-size: 20px; }
  .chk-card-head h2 { font-size: 16px; }
  .chk-related .product__card__img > img { height: 180px; }
}
