/* SuperBio Premium — presentation only. Do not change WooCommerce checkout behavior. */
body.woocommerce-cart,
body.woocommerce-checkout {
  --sb-green: #153f32;
  --sb-green-deep: #11362b;
  --sb-gold: #b68c3e;
  --sb-cream: #fffdf8;
  --sb-line: #e8ddc6;
  --sb-muted: #63766b;
}

/* Shared typography and page spacing; only cart & checkout pages. */
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
  color: var(--sb-green-deep);
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title {
  color: var(--sb-green-deep);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}

/* Classic WooCommerce cart: table, totals and coupon. */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart_totals {
  box-sizing: border-box;
  background: var(--sb-cream);
  border: 1px solid var(--sb-line);
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(21,63,50,.055);
  overflow: hidden;
}
body.woocommerce-cart .woocommerce-cart-form { padding: 18px 22px; margin-bottom: 24px; }
body.woocommerce-cart .cart-collaterals .cart_totals { padding: 22px; float: none; width: 100%; }
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-cart table.shop_table { border: 0; border-collapse: separate; border-spacing: 0; margin: 0; background: transparent; }
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td { border-color: var(--sb-line); padding: 15px 12px; }
body.woocommerce-cart table.shop_table thead th { color: var(--sb-green-deep); font-size: 13px; font-weight: 700; }
body.woocommerce-cart .product-name a { color: var(--sb-green-deep); text-decoration: none; font-weight: 650; }
body.woocommerce-cart .product-name a:hover { color: #2a7454; text-decoration: underline; }
body.woocommerce-cart .product-thumbnail img { width: 78px; height: 78px; max-width: 100%; object-fit: contain; border: 1px solid #f0e9da; border-radius: 12px; background: #fff; padding: 5px; }
body.woocommerce-cart .woocommerce-Price-amount { color: var(--sb-green-deep); font-weight: 700; }
body.woocommerce-cart .quantity .qty { width: 5.25em; max-width: 100%; min-height: 42px; border-radius: 9px; border: 1px solid var(--sb-line); background: #fff; }
body.woocommerce-cart .cart_totals h2 { color: var(--sb-green-deep); font-family: Georgia, 'Times New Roman', serif; margin: 0 0 13px; }
body.woocommerce-cart .cart_totals .order-total .amount { font-size: 1.22em; color: var(--sb-green-deep); }
body.woocommerce-cart .coupon .input-text { min-height: 44px; border: 1px solid var(--sb-line); border-radius: 10px; padding: 10px; }
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  border-radius: 11px !important;
  min-height: 44px;
  font-weight: 700;
  transition: background-color .2s ease, box-shadow .2s ease;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--sb-green) !important;
  color: #fff !important;
  text-align: center;
  padding: 16px 18px !important;
  box-shadow: 0 8px 20px rgba(21,63,50,.12);
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #245c46 !important; }
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info { border-top-color: var(--sb-gold); border-radius: 11px; background: #f6f7f0; }

/* WooCommerce Blocks checkout: typography, grouping, focus and action button. */
body.woocommerce-checkout .wp-block-woocommerce-checkout { --wc-blocks-border-radius: 11px; }
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-sidebar-layout__sidebar {
  min-width: 0;
}
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary__title {
  color: var(--sb-green-deep);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.015em;
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
  border-color: var(--sb-line);
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input {
  border-radius: 10px;
  border-color: #d8ddcf;
  background: #fff;
}
body.woocommerce-checkout .wc-block-components-text-input.is-active input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: #2e6e52;
  box-shadow: 0 0 0 2px rgba(46,110,82,.10);
}
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
  min-height: 52px;
  border-radius: 12px;
  background-color: var(--sb-green);
  color: #fff;
  font-weight: 700;
}
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover {
  background-color: #245c46;
  color: #fff;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  color: var(--sb-green-deep);
  font-weight: 650;
}
body.woocommerce-checkout .wc-block-components-totals-footer-item__value {
  color: var(--sb-green-deep);
  font-weight: 750;
}

/* Small screens: preserve native stacking and avoid horizontal overflow. */
@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce-cart-form { padding: 12px; border-radius: 14px; }
  body.woocommerce-cart .cart-collaterals .cart_totals { padding: 16px; border-radius: 14px; }
  body.woocommerce-cart table.shop_table td,
  body.woocommerce-cart table.shop_table th { padding: 12px 9px; }
  body.woocommerce-cart .coupon .input-text { max-width: 100%; }
  body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .woocommerce a.button,
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { transition: none; }
}
