/* KBSNEAK Cart 1.2 — WooCommerce data with a clean Nike-inspired layout. */
body.kbs-hf-cart-page .entry-title,
body.kbs-hf-cart-page .page-header,
body.kbs-hf-cart-page .woocommerce > h1,
body.kbs-hf-cart-page .wp-block-post-title { display: none !important; }

body.kbs-hf-cart-page .site-main,
body.kbs-hf-cart-page main,
body.kbs-hf-cart-page .entry-content,
body.kbs-hf-cart-page .woocommerce,
body.kbs-hf-cart-page .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kbs-cart,
.kbs-cart * { box-sizing: border-box; }

.kbs-cart {
  --kbs-cart-black: #111;
  --kbs-cart-muted: #707072;
  --kbs-cart-line: #dedede;
  --kbs-cart-soft: #f7f7f7;
  width: 100%;
  min-height: 620px;
  color: var(--kbs-cart-black);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.kbs-cart a { color: inherit; text-decoration: none; }
.kbs-cart svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; }

.kbs-cart-delivery {
  min-height: 64px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #111;
  background: var(--kbs-cart-soft);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.kbs-cart-delivery svg { width: 25px; height: 25px; stroke-width: 1.8; }

.kbs-cart-form { margin: 0 !important; }
.kbs-cart-form[aria-busy="true"] { opacity: .72; pointer-events: none; }

.kbs-cart-layout {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 64px 34px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(350px, 1fr);
  align-items: start;
  gap: clamp(48px, 6vw, 96px);
}

.kbs-cart-bag-header { margin: 0 0 24px; }
.kbs-cart-bag-header h1,
.kbs-cart-summary h2,
.kbs-cart-empty h1 {
  margin: 0;
  color: #111;
  font-family: inherit;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.kbs-cart-bag-header p { display: none; }

.kbs-cart-items { border-top: 1px solid #f1f1f1; }

.kbs-cart-item {
  min-width: 0;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  border-bottom: 1px solid var(--kbs-cart-line);
}

.kbs-cart-item-image {
  width: 190px;
  height: 190px;
  overflow: hidden;
  background: var(--kbs-cart-soft);
}

.kbs-cart-item-image a,
.kbs-cart-item-image img { width: 100%; height: 100%; display: block; }
.kbs-cart-item-image img { margin: 0 !important; object-fit: contain; }

.kbs-cart-item-details { min-width: 0; }
.kbs-cart-item-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.kbs-cart-item-heading h2 {
  margin: 3px 0 2px;
  color: #111;
  font-family: inherit;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.kbs-cart-item-price { padding-top: 3px; color: #111; font-size: 18px; font-weight: 500; white-space: nowrap; }
.kbs-cart-item-price .amount { font-weight: inherit; }

.kbs-cart-item-meta { margin-top: 2px; color: var(--kbs-cart-muted); font-size: 17px; }
.kbs-cart-item-meta dl,
.kbs-cart-item-meta p { margin: 0 !important; }
.kbs-cart-item-meta dt,
.kbs-cart-item-meta dd { display: inline; margin: 0 8px 0 0; font-weight: 400; }
.kbs-cart-item-meta dd p { display: inline; }

.kbs-cart-item-controls { margin-top: 10px; }
.kbs-cart-item-controls label { display: inline-flex; align-items: center; gap: 9px; color: var(--kbs-cart-muted); font-size: 17px; }
.kbs-cart-item-controls .quantity { display: inline-flex; margin: 0 !important; }
.kbs-cart-item-controls input.qty {
  width: 64px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  color: #111 !important;
  background: #fff !important;
  border: 1px solid var(--kbs-cart-line) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font: inherit !important;
  text-align: center;
}

.kbs-cart-item-actions { margin-top: 20px; display: flex; align-items: center; gap: 22px; }
.kbs-cart-favorite,
.kbs-cart-remove {
  width: 28px;
  height: 28px;
  padding: 2px;
  display: inline-flex !important;
  color: #707072 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50%;
  text-decoration: none !important;
}
.kbs-cart-favorite:hover,
.kbs-cart-remove:hover { color: #111 !important; }

.kbs-cart-summary { min-width: 0; }
.kbs-cart-summary h2 { margin-bottom: 24px; }

.kbs-cart-summary-row {
  min-height: 70px;
  padding: 17px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--kbs-cart-line);
  font-size: 17px;
}
.kbs-cart-summary-row > span { display: flex; align-items: center; gap: 8px; }
.kbs-cart-summary-row svg { width: 20px; height: 20px; fill: #111; color: #fff; stroke-width: 2; }
.kbs-cart-summary-row strong { font-size: 17px; font-weight: 500; white-space: nowrap; }
.kbs-cart-total { margin-top: 14px; font-size: 18px; }
.kbs-cart-total strong { font-size: 18px; }
.kbs-cart-tax { margin: -25px 0 0; color: var(--kbs-cart-muted); font-size: 14px; text-align: right; }

.kbs-cart-shipping {
  margin: 28px 0 30px !important;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--kbs-cart-muted);
  font-size: 15px;
}
.kbs-cart-shipping svg { width: 28px; height: 28px; flex: 0 0 auto; stroke-width: 1.6; }

.kbs-cart-coupon { margin: 0 0 28px; }
.kbs-cart-coupon > label { display: block; margin: 0 0 10px; color: #111; font-size: 16px; font-weight: 650; }
.kbs-cart-coupon > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.kbs-cart-coupon input {
  min-width: 0;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  color: #111 !important;
  background: #fff !important;
  border: 1px solid #cfcfcf !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: none !important;
  font: inherit !important;
}
.kbs-cart-coupon button {
  height: 52px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  color: #fff !important;
  background: #111 !important;
  border: 1px solid #111 !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 650 !important;
  cursor: pointer;
}

.kbs-cart-checkout,
.kbs-cart-primary-button {
  width: 100%;
  min-height: 62px;
  padding: 17px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: #111 !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none !important;
  transition: background-color .18s ease;
}
.kbs-cart-checkout:hover,
.kbs-cart-primary-button:hover {
  color: #fff !important;
  background: #333 !important;
}
.kbs-cart-checkout:focus-visible,
.kbs-cart-primary-button:focus-visible { outline: 3px solid rgba(17,17,17,.25); outline-offset: 4px; }

.kbs-cart-empty {
  width: min(100% - 40px, 640px);
  margin: 0 auto;
  padding: 100px 24px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kbs-cart-empty > svg { width: 58px; height: 58px; margin-bottom: 24px; stroke-width: 1.4; }
.kbs-cart-empty p { margin: 12px 0 28px; color: var(--kbs-cart-muted); }
.kbs-cart-empty .kbs-cart-primary-button { width: auto; min-width: 220px; }

.kbs-cart .woocommerce-error,
.kbs-cart .woocommerce-message,
.kbs-cart .woocommerce-info,
body.kbs-hf-cart-page > .woocommerce-error,
body.kbs-hf-cart-page > .woocommerce-message,
body.kbs-hf-cart-page > .woocommerce-info {
  width: min(100% - 40px, 1252px);
  margin: 18px auto !important;
  padding: 15px 18px !important;
  color: #111;
  background: #f5f5f5;
  border: 0;
  border-left: 4px solid #111;
}

@media (max-width: 900px) {
  .kbs-cart-layout { grid-template-columns: 1fr; gap: 62px; }
}

@media (max-width: 782px) {
  .kbs-cart-delivery { min-height: 72px; padding: 18px 16px; font-size: 16px; }
  .kbs-cart-layout { padding: 38px 20px 70px; gap: 58px; }

  .kbs-cart-bag-header { margin-bottom: 32px; text-align: center; }
  .kbs-cart-bag-header h1 { font-size: 28px; }
  .kbs-cart-bag-header p { margin: 8px 0 0; display: flex; justify-content: center; gap: 9px; color: var(--kbs-cart-muted); font-size: 16px; }
  .kbs-cart-bag-header strong { color: #111; font-weight: 500; }

  .kbs-cart-item { padding: 34px 0 42px; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
  .kbs-cart-item-image { width: 118px; height: 118px; }
  .kbs-cart-item-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .kbs-cart-item-heading h2,
  .kbs-cart-item-price { font-size: 16px; }
  .kbs-cart-item-meta,
  .kbs-cart-item-controls label { font-size: 15px; }
  .kbs-cart-item-actions { margin-top: 16px; gap: 18px; }
  .kbs-cart-favorite,
  .kbs-cart-remove { width: 26px; height: 26px; }

  .kbs-cart-summary h2 { font-size: 28px; }
  .kbs-cart-summary-row,
  .kbs-cart-summary-row strong { font-size: 16px; }
  .kbs-cart-tax { margin-top: -23px; font-size: 13px; }
  .kbs-cart-coupon { margin-bottom: 22px; }
  .kbs-cart-checkout { position: sticky; bottom: 16px; z-index: 20; }
}

@media (max-width: 460px) {
  .kbs-cart-layout { padding-right: 14px; padding-left: 14px; }
  .kbs-cart-item { grid-template-columns: 100px minmax(0, 1fr); gap: 13px; }
  .kbs-cart-item-image { width: 100px; height: 100px; }
  .kbs-cart-item-heading { display: block; }
  .kbs-cart-item-price { display: block; margin-top: 5px; }
  .kbs-cart-coupon > div { grid-template-columns: 1fr; gap: 8px; }
  .kbs-cart-coupon input,
  .kbs-cart-coupon button { border-radius: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .kbs-cart * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Keep summary, coupon and address controls off the viewport edges. */
@media(max-width:782px){.kbs-cart-layout{padding-left:20px;padding-right:20px;padding-bottom:120px}.kbs-cart-checkout{position:static}.kbs-cart-summary{min-width:0}.kbs-cart-summary input,.kbs-cart-summary select{max-width:100%;font-size:16px}}
