/* ============================================================
   CART PAGE (cart.css)
   Conigx — Surgical Instruments
============================================================ */

.cart-section {
  padding: 32px 0 72px;
}
.cart-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cart-page-header .sec-title {
  margin-bottom: 0;
}
.cart-page-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0;
}

/* Layout */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.cart-page-form {
  margin: 0;
}

/* Items panel */
.cart-items-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cart-items-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 24px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
  color: var(--text-muted);
}
.cart-items {
  display: flex;
  flex-direction: column;
}
.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-media {
  align-self: start;
  line-height: 0;
}
.cart-item-thumb {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #e0eeff 0%, #c8dcf8 100%);
  line-height: 0;
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}
.cart-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cart-item-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
  color: var(--accent);
  margin: 0 0 1px;
  line-height: 1.2;
}
.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin: 0.65em 0 0.65em;
  padding: 0;
}
.cart-item-name a {
  color: inherit;
  text-decoration: none;
}
.cart-item-name a:hover {
  color: var(--accent);
}
.cart-item-body dl.variation {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}
.cart-item-subtotal {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.cart-item-subtotal .amount {
  color: inherit;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cart-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}
.cart-qty-field {
  display: inline-flex;
}
.cart-item-qty .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.cart-item-qty .quantity label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.cart-item-qty .quantity input.qty {
  width: 72px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  cursor: text;
  transition: border-color .2s ease, box-shadow .2s ease;
  -moz-appearance: textfield;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.cart-item-qty .quantity input.qty:hover {
  border-color: #cbd5e1;
}
.cart-item-qty .quantity input.qty:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, .12);
}
.cart-item-qty .quantity input.qty::-webkit-outer-spin-button,
.cart-item-qty .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-remove-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  text-decoration: none;
  transition: var(--ease);
}
.cart-remove-link:hover {
  color: #991b1b;
}

/* Cart actions */
.cart-actions {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--off-white);
}
.cart-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.cart-coupon > label:not(.screen-reader-text) {
  display: none;
}
.cart-coupon .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.cart-coupon-input {
  flex: 1;
  min-width: 180px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  background: var(--white);
}
.cart-coupon-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.cart-coupon-btn {
  min-height: 44px;
  padding: 0 18px;
}
.cart-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-continue-link {
  text-decoration: none;
}
.cart-continue-link:hover,
.cart-continue-link:focus-visible,
.cart-coupon-btn:hover,
.cart-coupon-btn:focus-visible {
  color: var(--white);
}
.cart-continue-link:hover i,
.cart-coupon-btn:hover i {
  color: var(--white);
}
.cart-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}
.cart-update-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sidebar totals */
.cart-sidebar {
  position: sticky;
  top: calc(var(--site-top) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart_totals {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.cart-totals-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.cart-totals-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cart-totals-table th,
.cart-totals-table td {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-mid);
  vertical-align: top;
}
.cart-totals-table th {
  font-weight: 600;
  text-align: left;
  padding-right: 12px;
}
.cart-totals-table td {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
}
.cart-totals-table tr.order-total th,
.cart-totals-table tr.order-total td {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.cart-totals-table .shipping-calculator-form {
  margin-top: 10px;
}
.cart-totals-table .shipping-calculator-button {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.wc-proceed-to-checkout {
  margin-top: 4px;
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--ease);
}
.cart-checkout-btn:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
  box-shadow: var(--shadow-accent);
}

/* Trust strip */
.cart-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
}
.cart-trust-item i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(21,101,192,.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* Empty cart */
.cart-section--empty {
  padding-bottom: 56px;
}
.cart-empty-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.cart-empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(21,101,192,.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.cart-empty-panel h2,
.cart-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.cart-empty-panel p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cart-empty-actions a {
  text-decoration: none;
}
.cart-empty-actions .btn-outline-accent:hover,
.cart-empty-actions .btn-outline-accent:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.cart-empty-actions .btn-outline-accent:hover i,
.cart-empty-actions .btn-outline-accent:focus-visible i {
  color: var(--white);
}

/* Cross-sells */
.cart-cross-sells {
  padding-top: 0;
}
.cart-cross-head {
  margin-bottom: 28px;
}

/* Notices */
.conigx-cart-page .woocommerce-message,
.conigx-cart-page .woocommerce-info,
.conigx-cart-page .woocommerce-error {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 13px;
}
.conigx-cart-page .woocommerce-message {
  background: rgba(21,101,192,.08);
  border: 1px solid rgba(21,101,192,.18);
  color: var(--primary);
}
.conigx-cart-page .woocommerce-error {
  background: rgba(185,28,28,.06);
  border: 1px solid rgba(185,28,28,.18);
  color: #991b1b;
}

/* Link resets */
.conigx-cart-page .blog-entry-content h2,
.conigx-cart-page .blog-entry-content h3,
.conigx-cart-page .blog-entry-content h4,
.conigx-cart-page .entry-content h2,
.conigx-cart-page .entry-content h3,
.conigx-cart-page .entry-content h4,
.conigx-cart-page .cart-section h2,
.conigx-cart-page .cart-section h3,
.conigx-cart-page .cart-section h4 {
  margin: 0.65em 0 0.65em;
}
.conigx-cart-page .cart-item-info .cart-item-name {
  margin-top: 0.65em;
  margin-bottom: 0.65em;
}

.conigx-cart-page .cart-item-name a,
.conigx-cart-page .cart-remove-link,
.conigx-cart-page .cart-continue-link,
.conigx-cart-page .cart-checkout-btn,
.conigx-cart-page .cart-empty-actions a {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-section {
    padding: 24px 0 56px;
  }
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }
  .cart-item-qty {
    width: 100%;
    justify-content: space-between;
  }
  .cart-qty-field {
    flex: 0 0 auto;
  }
  .cart-item-thumb {
    width: 88px;
    height: 88px;
  }
  .cart-items-head {
    display: none;
  }
  .cart-item-top {
    flex-direction: column;
    gap: 8px;
  }
  .cart-item-subtotal {
    font-size: 15px;
  }
  .cart-actions {
    padding: 16px;
  }
  .cart-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-continue-link,
  .cart-update-btn {
    width: 100%;
    justify-content: center;
  }
  .cart-coupon {
    flex-direction: column;
  }
  .cart-coupon-btn {
    width: 100%;
    justify-content: center;
  }
  .cart_totals {
    padding: 20px 18px;
  }
  .cart-totals-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .cart-totals-table tr:last-child {
    border-bottom: none;
  }
}
