/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */

.woocommerce-cart-page,
.woocommerce-checkout-page { padding: var(--s10) 0 var(--s16); }

/* WooCommerce table overrides */
.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--s8);
  font-size: var(--text-sm);
}
.woocommerce table.shop_table th {
  padding: var(--s3) var(--s4);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text-light);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.woocommerce table.shop_table td {
  padding: var(--s4);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.woocommerce table.shop_table .product-thumbnail img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.woocommerce table.shop_table .product-name a { font-weight: 600; }
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal { font-weight: 700; }
.woocommerce table.shop_table .product-remove a {
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}
.woocommerce table.shop_table .product-remove a:hover { color: var(--red); }

/* Cart layout */
.woocommerce .cart-collaterals { margin-top: var(--s6); }
.woocommerce .cart_totals {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s6);
}
.woocommerce .cart_totals h2 { font-size: var(--text-lg); margin-bottom: var(--s4); }
.woocommerce .cart_totals table th { font-size: var(--text-sm); }
.woocommerce .cart_totals table td { font-size: var(--text-sm); text-align: right; }
.woocommerce .cart_totals .order-total td { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; }

/* Buttons */
.woocommerce .btn,
.woocommerce-cart .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--text);
  color: var(--white);
  border: 1.5px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 160ms ease;
  text-decoration: none;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover { background: #2D2A26; }
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--text);
  color: var(--white);
}

/* Checkout form */
.woocommerce form .form-row { margin-bottom: var(--s4); }
.woocommerce form .form-row label { font-size: var(--text-sm); font-weight: 600; margin-bottom: 6px; display: block; }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color 160ms ease;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus { outline: none; border-color: var(--text); }

/* Order review */
.woocommerce-checkout-review-order { margin-top: var(--s6); }
.woocommerce #payment { background: var(--off-white); border-radius: var(--radius-lg); padding: var(--s6); }
.woocommerce #payment .payment_methods { border-bottom: 1px solid var(--border); margin-bottom: var(--s4); }
.woocommerce #payment .place-order .button { width: 100%; font-size: var(--text-base); padding: 14px; }

/* Checkout layout */
@media (min-width: 768px) {
  .woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
}

/* Notices */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  padding: var(--s3) var(--s5);
  border-radius: var(--radius);
  margin-bottom: var(--s4);
  font-size: var(--text-sm);
  list-style: none;
}
.woocommerce-error { background: var(--red-pale); border-left: 4px solid var(--red); color: var(--red); }
.woocommerce-message { background: var(--green-pale); border-left: 4px solid var(--green); color: #1A4A35; }
.woocommerce-info { background: var(--amber-pale); border-left: 4px solid var(--amber); color: var(--amber-dark); }
