/* ============================================================
   Cart Page Styles — blank-chem
   Loaded only on the WooCommerce cart page (is_cart()).
   Do NOT edit style.css for cart-specific rules.
   ============================================================ */

/* ─── PAGE WRAPPER ─── */
.bc-cart-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ─── LEFT COLUMN ─── */
.bc-cart-left {}

/* Page heading */
.bc-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(91, 143, 232, .13);
  margin-bottom: 0;
}

.bc-page-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #F8F7FF;
  line-height: 1;
}

.bc-page-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4E6080;
  margin-top: 5px;
}

.bc-back-link {
  font-size: 12.5px;
  font-weight: 500;
  color: #4E6080;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}

.bc-back-link:hover { color: #5B8FE8; }

/* ─── CART TABLE ─── */
.bc-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.bc-cart-table colgroup col:nth-child(1) { width: 44px; }
.bc-cart-table colgroup col:nth-child(2) { width: auto; }
.bc-cart-table colgroup col:nth-child(3) { width: 130px; }
.bc-cart-table colgroup col:nth-child(4) { width: 100px; }
.bc-cart-table colgroup col:nth-child(5) { width: 90px; }

/* Header row */
.bc-cart-table thead tr { border-bottom: 1px solid rgba(91, 143, 232, .13); }

.bc-cart-table thead th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5B8FE8;
  padding: 14px 10px 12px;
}

.bc-cart-table thead th:first-child { padding-left: 0; }
.bc-cart-table thead th:last-child { text-align: right; padding-right: 0; }
.bc-cart-table thead th.bc-th-c { text-align: center; }
.bc-cart-table thead th.bc-th-r { text-align: right; }

/* Body rows */
.bc-cart-table tbody tr {
  border-bottom: 1px solid rgba(91, 143, 232, .13);
  transition: opacity .22s, transform .22s;
}

.bc-cart-table tbody td {
  padding: 20px 10px;
  vertical-align: middle;
}

.bc-cart-table tbody td:first-child { padding-left: 0; }
.bc-cart-table tbody td:last-child  { padding-right: 0; }

/* Vial cell */
.bc-vial-box {
  width: 44px;
  height: 56px;
  border-radius: 5px;
  background: linear-gradient(160deg, #06091A, #030710);
  border: 1px solid rgba(91, 143, 232, .13);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-vial-box img {
  width: 38px;
  height: 48px;
  object-fit: contain;
}

/* Product cell */
.bc-prod-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5B8FE8;
  margin-bottom: 4px;
}

.bc-prod-name {
  font-size: 15px;
  font-weight: 700;
  color: #F8F7FF;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  text-decoration: none;
}

.bc-prod-name a {
  color: inherit;
  text-decoration: none;
}

.bc-prod-name a:hover { color: #5B8FE8; }

.bc-prod-spec {
  font-size: 12px;
  color: #4E6080;
  margin-bottom: 5px;
}

.bc-prod-purity {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.bc-purity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ECC8A;
  box-shadow: 0 0 5px rgba(46, 204, 138, .5);
  flex-shrink: 0;
}

.bc-purity-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .05em;
  color: #2ECC8A;
  opacity: .85;
}

.bc-remove-btn {
  font-size: 11px;
  font-weight: 500;
  color: #4E6080;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s cubic-bezier(.4, 0, .2, 1);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.bc-remove-btn:hover { color: #E05A5A; }

/* Qty cell */
.bc-qty-cell { text-align: center; }

/* ── Stepper: the .quantity div is now also .bc-stepper ── */
.bc-stepper,
.bc-qty-cell .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(91, 143, 232, .13);
  border-radius: 5px;
  overflow: hidden;
  background: #060912;
}

/* Quantity number input */
.bc-qty-cell .quantity input.qty,
.bc-stepper input.qty {
  width: 40px;
  height: 32px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(91, 143, 232, .13);
  border-right: 1px solid rgba(91, 143, 232, .13);
  color: #F8F7FF;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  outline: none;
  -moz-appearance: textfield;
}

.bc-qty-cell .quantity input.qty::-webkit-inner-spin-button,
.bc-qty-cell .quantity input.qty::-webkit-outer-spin-button,
.bc-stepper input.qty::-webkit-inner-spin-button,
.bc-stepper input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Stepper −/+ buttons */
.bc-stepper-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #4E6080;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.bc-stepper-btn:hover {
  background: rgba(91, 143, 232, .1);
  color: #F8F7FF;
}

/* Legacy alias kept for compat */
.bc-qty-cell .quantity .qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #4E6080;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
}

.bc-qty-cell .quantity .qty-btn:hover {
  background: rgba(91, 143, 232, .1);
  color: #F8F7FF;
}

/* Price cells */
.bc-unit-cell {
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: #D6E2F5;
}

.bc-total-cell {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: #F8F7FF;
  letter-spacing: -.02em;
}

/* ─── CART ACTIONS (coupon / update) ─── */
.bc-cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
}

/* Update cart button — subdued */
.bc-cart-actions .bc-update-btn {
  background: transparent;
  border: 1px solid rgba(91, 143, 232, .26);
  color: #4E6080;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.bc-cart-actions .bc-update-btn:hover { color: #D6E2F5; border-color: #5B8FE8; }

/* ─── EMPTY STATE ─── */
.bc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.bc-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(91, 143, 232, .05);
  border: 1px solid rgba(91, 143, 232, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4E6080;
  margin-bottom: 16px;
}

.bc-empty-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #F8F7FF;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.bc-empty-sub {
  font-size: 13px;
  color: #4E6080;
  margin-bottom: 22px;
}

.bc-browse-btn {
  background: #5B8FE8;
  color: #fff;
  padding: 11px 24px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .2s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}

.bc-browse-btn:hover { background: #4470E0; }

/* ─── RIGHT: ORDER SUMMARY ─── */
.bc-cart-summary {
  background: #03060D;
  border: 1px solid rgba(91, 143, 232, .13);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.bc-sum-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(91, 143, 232, .13);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F8F7FF;
}

/* Promo / coupon */
.bc-promo-wrap {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(91, 143, 232, .13);
}

.bc-promo-row {
  display: flex;
  gap: 8px;
}

.bc-promo-input {
  flex: 1;
  background: #060912;
  border: 1.5px solid rgba(91, 143, 232, .13);
  border-radius: 5px;
  padding: 9px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #F8F7FF;
  outline: none;
  transition: border-color .2s cubic-bezier(.4, 0, .2, 1);
}

.bc-promo-input::placeholder { color: #4E6080; }
.bc-promo-input:focus        { border-color: #5B8FE8; }

.bc-promo-btn {
  padding: 9px 14px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid rgba(91, 143, 232, .26);
  color: #5B8FE8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.bc-promo-btn:hover {
  background: rgba(91, 143, 232, .09);
  border-color: #5B8FE8;
}

/* Applied coupon tags */
.bc-coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 138, .08);
  border: 1px solid rgba(46, 204, 138, .22);
  color: #2ECC8A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

.bc-coupon-tag a {
  color: inherit;
  opacity: .7;
  text-decoration: none;
  line-height: 1;
}

.bc-coupon-tag a:hover { opacity: 1; }

/* Totals */
.bc-sum-totals { padding: 18px 22px; }

/* WooCommerce totals table override */
/* Hide the WC-generated "Cart totals" heading — we use "Order Summary" */
.bc-cart-summary .cart_totals h2 {
  display: none;
}

.bc-cart-summary .cart_totals {
  padding: 0;
}

/* ── bc-totals-inner: our custom cart-totals.php markup ── */
.bc-totals-inner { padding: 0; }

/* Standard row */
.bc-t-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.bc-t-label {
  color: #4E6080;
  font-size: 13px;
  font-weight: 400;
}

.bc-t-val {
  color: #D6E2F5;
  font-weight: 600;
  font-size: 13px;
  text-align: right;
}

/* Strip any WC amount spans of inherited styles */
.bc-t-val .woocommerce-Price-amount,
.bc-t-val bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.bc-t-val--dim, .bc-t-val.dim {
  color: #4E6080;
  font-size: 11.5px;
  font-weight: 400;
}

.bc-t-val--green, .bc-t-val.green,
.bc-shipping-free {
  color: #2ECC8A;
  font-weight: 700;
}

/* Divider */
.bc-t-divider {
  height: 1px;
  background: rgba(91, 143, 232, .13);
  margin: 14px 0;
}

/* Grand total */
.bc-t-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.bc-t-grand-label {
  font-size: 13px;
  font-weight: 600;
  color: #F8F7FF;
}

.bc-t-grand-val {
  font-size: 26px;
  font-weight: 800;
  color: #F8F7FF;
  letter-spacing: -.03em;
}

/* Strip WC amount markup in grand total */
.bc-t-grand-val .woocommerce-Price-amount,
.bc-t-grand-val strong,
.bc-t-grand-val bdi {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Coupon discount row */
.bc-t-val--green .woocommerce-Price-amount,
.bc-t-val--green bdi {
  color: inherit;
}

/* Checkout button */
.bc-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: #5B8FE8;
  color: #fff;
  padding: 14px;
  border-radius: 5px;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 18px rgba(91, 143, 232, .25);
  text-decoration: none;
  cursor: pointer;
}

.bc-checkout-btn:hover {
  background: #4470E0;
  box-shadow: 0 6px 24px rgba(91, 143, 232, .4);
}

/* WooCommerce checkout button override */
.bc-cart-summary .wc-proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #5B8FE8;
  color: #fff !important;
  padding: 14px;
  border-radius: 5px;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 18px rgba(91, 143, 232, .25);
  text-decoration: none;
}

.bc-cart-summary .wc-proceed-to-checkout .checkout-button:hover {
  background: #4470E0;
  box-shadow: 0 6px 24px rgba(91, 143, 232, .4);
}

.bc-cont-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: transparent;
  color: #4E6080;
  padding: 11px;
  border-radius: 5px;
  border: 1px solid rgba(91, 143, 232, .13);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 9px;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
}

.bc-cont-btn:hover {
  color: #D6E2F5;
  border-color: rgba(91, 143, 232, .26);
}

/* Trust badges */
.bc-trust-list {
  padding: 14px 22px;
  border-top: 1px solid rgba(91, 143, 232, .13);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bc-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #4E6080;
}

.bc-trust-item svg { color: #5B8FE8; flex-shrink: 0; }

/* RUO notice */
.bc-ruo {
  padding: 12px 22px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: rgba(200, 212, 238, .22);
  line-height: 1.85;
  text-align: center;
  border-top: 1px solid rgba(91, 143, 232, .13);
  letter-spacing: .01em;
}

/* ─── WOOCOMMERCE NOTICES ─── */
.bc-cart-page .woocommerce-message,
.bc-cart-page .woocommerce-info,
.bc-cart-page .woocommerce-error {
  background: rgba(91, 143, 232, .06);
  border: 1px solid rgba(91, 143, 232, .2);
  border-radius: 5px;
  color: #D6E2F5;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  list-style: none;
}

.bc-cart-page .woocommerce-error {
  border-color: rgba(224, 90, 90, .3);
  background: rgba(224, 90, 90, .05);
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .bc-cart-page {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
    gap: 24px;
  }

  .bc-cart-summary { position: static; }

  .bc-cart-table thead th.bc-th-c,
  .bc-cart-table thead th.bc-th-r,
  .bc-cart-table tbody td.bc-qty-cell,
  .bc-cart-table tbody td.bc-unit-cell,
  .bc-cart-table tbody td.bc-total-cell {
    display: none;
  }

  .bc-cart-table colgroup col:nth-child(1) { width: 40px; }

  .bc-mob-price-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(91, 143, 232, .13);
  }
}

.bc-mob-price-row { display: none; }
