/*
 * SIGMAN cart page + checkout styling — classic WooCommerce forms restyled to the
 * SIGMAN design system (square navy buttons, Sofia type, thin borders, EGP focus).
 * WooCommerce owns checkout logic; this skins it to feel like the SIGMAN storefront.
 */

/* ── Cart page ── */
.woocommerce-cart .woocommerce { max-width: 980px; margin-inline: auto; }
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 0.9rem;
}
table.shop_table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-foreground);
}
table.shop_table td { padding: 14px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); vertical-align: middle; }
table.shop_table td.product-thumbnail img { width: 64px; height: 80px; object-fit: cover; }
table.shop_table td.product-name a { text-decoration: none; font-weight: 600; }
table.shop_table dl.variation { font-size: 0.75rem; opacity: 0.7; margin: 4px 0 0; }
table.shop_table dl.variation dt, table.shop_table dl.variation dd { display: inline; margin: 0; }
table.shop_table .product-remove a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: inherit; text-decoration: none; font-size: 18px; opacity: 0.5;
}
table.shop_table .product-remove a:hover { opacity: 1; }
.woocommerce-cart-form .coupon { display: inline-flex; gap: 8px; }
.woocommerce-cart-form .coupon input { width: 160px; }
.woocommerce-cart-form button[name='update_cart'] { background: transparent; color: var(--color-foreground); border: 1px solid var(--color-foreground); }
.cart_totals { margin-top: var(--sgm-space-24); }
.cart_totals h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }

/* ── Checkout ──
   The checkout form is styled by its own sheet (sgm/sgm-checkout.css) enqueued
   only on the checkout page — see inc/assets.php. This file keeps cart,
   account and the order-received page. */

/* Account pages — SIGMAN-consistent basics */
.woocommerce-account .woocommerce { max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: 220px 1fr; gap: var(--sgm-space-32); }
@media (max-width: 749px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 10px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.woocommerce-MyAccount-navigation li.is-active a { color: var(--color-primary); }
