/* Avata Labs — cart page (2026-09-03). Theme dequeues WooCommerce CSS; this is the cart's only stylesheet.
   Layout mirrors goalphalabs.com/cart: item rows as cards, totals in a card, full-width CTA. Mobile-first. */

body.woocommerce-cart .woocommerce { max-width: 1200px; margin: 0 auto; padding: 0 15px 48px; }
body.woocommerce-cart .woocommerce-notices-wrapper { margin-bottom: 16px; }

/* Layout: form left, totals right on desktop */
body.woocommerce-cart .woocommerce-cart-form { width: 100%; }
@media (min-width: 992px) {
  body.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  body.woocommerce-cart .woocommerce-notices-wrapper, body.woocommerce-cart .woocommerce > .cart-empty, body.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
  body.woocommerce-cart .cart-collaterals { position: sticky; top: 90px; }
}

/* Item table → card rows */
body.woocommerce-cart table.shop_table.cart { width: 100%; border: 0; border-collapse: separate; border-spacing: 0 12px; margin: 0; }
body.woocommerce-cart table.shop_table.cart thead { display: none; }
body.woocommerce-cart table.shop_table.cart tr.woocommerce-cart-form__cart-item {
  display: grid; grid-template-columns: 24px 88px minmax(0, 1fr); grid-template-areas: "remove thumb name" "remove thumb qty" "remove thumb total";
  gap: 4px 14px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px;
  box-shadow: 0 8px 24px rgba(14, 36, 68, 0.05);
}
body.woocommerce-cart table.shop_table.cart td { display: block; border: 0; padding: 0; background: transparent; }
body.woocommerce-cart table.shop_table.cart td::before { display: none; }
body.woocommerce-cart table.shop_table.cart td.product-remove { grid-area: remove; }
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #f1f5f9; color: #64748b !important; font-size: 18px; line-height: 1; text-decoration: none; font-weight: 700;
}
body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover { background: #fee2e2; color: #b91c1c !important; }
body.woocommerce-cart table.shop_table.cart td.product-thumbnail { grid-area: thumb; }
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
  width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; display: block;
}
body.woocommerce-cart table.shop_table.cart td.product-name { grid-area: name; font-size: 15px; font-weight: 700; color: #0E2444; line-height: 1.3; }
body.woocommerce-cart table.shop_table.cart td.product-name a { color: #0E2444; text-decoration: none; }
body.woocommerce-cart table.shop_table.cart td.product-name .variation { font-size: 12px; color: #64748b; font-weight: 400; margin-top: 2px; }
body.woocommerce-cart table.shop_table.cart td.product-price { display: none; }
body.woocommerce-cart table.shop_table.cart td.product-quantity { grid-area: qty; display: flex; align-items: center; gap: 12px; }
body.woocommerce-cart table.shop_table.cart td.product-subtotal { grid-area: total; font-size: 16px; font-weight: 800; color: #0E2444; padding-top: 4px; }
body.woocommerce-cart table.shop_table.cart td.product-subtotal::after { content: " subtotal"; font-size: 12px; font-weight: 500; color: #64748b; }
@media (min-width: 640px) { body.woocommerce-cart table.shop_table.cart tr.woocommerce-cart-form__cart-item { grid-template-columns: 24px 88px minmax(0,1fr) auto; grid-template-areas: "remove thumb name total" "remove thumb qty total"; } body.woocommerce-cart table.shop_table.cart td.product-subtotal { align-self: center; text-align: right; } body.woocommerce-cart table.shop_table.cart td.product-subtotal::after { display: block; } }
body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-amount { color: #0E2444; }

/* Quantity stepper (matches PDP/shop stepper) */
body.woocommerce-cart .quantity { display: inline-flex; align-items: center; border: 1px solid #d7dee8; border-radius: 10px; overflow: hidden; height: 40px; background: #fff; }
body.woocommerce-cart .quantity .qty { width: 44px; height: 40px; border: 0; text-align: center; font-size: 15px; font-weight: 700; color: #0E2444; -moz-appearance: textfield; }
body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button, body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.woocommerce-cart .quantity .qty-btn, body.woocommerce-cart .quantity .minus, body.woocommerce-cart .quantity .plus {
  width: 36px; height: 40px; border: 0; background: #0E2444; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* Actions row: coupon + update */
body.woocommerce-cart table.shop_table.cart td.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0 0; background: transparent; }
body.woocommerce-cart table.shop_table.cart td.actions .coupon { display: flex; flex: 1 1 100%; gap: 8px; }
body.woocommerce-cart table.shop_table.cart td.actions .coupon label { display: none; }
body.woocommerce-cart table.shop_table.cart td.actions .coupon #coupon_code {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #d7dee8; border-radius: 10px; font-size: 15px; background: #fff;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon button,
body.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] {
  height: 46px; padding: 0 18px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon button { background: #0E2444; color: #fff; }
body.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] { background: #f1f5f9; color: #0E2444; }
body.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"]:disabled { opacity: .5; cursor: default; }
@media (min-width: 640px) {
  body.woocommerce-cart table.shop_table.cart td.actions { justify-content: space-between; }
  body.woocommerce-cart table.shop_table.cart td.actions .coupon { flex: 0 1 420px; }
}

/* Totals card */
body.woocommerce-cart .cart-collaterals { width: 100%; margin-top: 20px; }
@media (min-width: 992px) { body.woocommerce-cart .cart-collaterals { margin-top: 0; } }
body.woocommerce-cart .cart_totals { width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px; box-shadow: 0 14px 36px rgba(27, 42, 74, 0.07); }
body.woocommerce-cart .cart_totals h2 { font-size: 20px; font-weight: 800; color: #0E2444; margin: 0 0 14px; }
body.woocommerce-cart .cart_totals table.shop_table { width: 100%; border: 0; border-collapse: collapse; margin: 0; }
body.woocommerce-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
body.woocommerce-cart .cart_totals table.shop_table th, body.woocommerce-cart .cart_totals table.shop_table td { display: block; border: 0; padding: 0; background: transparent; font-size: 15px; color: #334155; }
body.woocommerce-cart .cart_totals table.shop_table th { font-weight: 600; }
body.woocommerce-cart .cart_totals table.shop_table td { text-align: right; font-weight: 700; color: #0E2444; }
body.woocommerce-cart .cart_totals table.shop_table td::before { display: none; }
body.woocommerce-cart .cart_totals tr.order-total { border-bottom: 0; padding-top: 14px; }
body.woocommerce-cart .cart_totals tr.order-total th, body.woocommerce-cart .cart_totals tr.order-total td { font-size: 18px; font-weight: 800; color: #0E2444; }
body.woocommerce-cart .cart_totals tr.cart-discount td { color: #15803d; }
body.woocommerce-cart .cart_totals tr.cart-discount td a { font-size: 12px; font-weight: 500; color: #64748b; margin-left: 6px; }
/* Shipping block inside totals */
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; }
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td { text-align: left; font-weight: 400; }
body.woocommerce-cart .cart_totals #shipping_method { list-style: none; margin: 6px 0 0; padding: 0; }
body.woocommerce-cart .cart_totals #shipping_method li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
body.woocommerce-cart .cart_totals #shipping_method li label { margin: 0; font-weight: 500; color: #334155; }
body.woocommerce-cart .cart_totals #shipping_method li .woocommerce-Price-amount { font-weight: 700; color: #0E2444; }
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination { font-size: 13px; color: #64748b; margin: 8px 0 0; }
body.woocommerce-cart .cart_totals .shipping-calculator-button { font-size: 13px; color: #0E2444; text-decoration: underline; }
body.woocommerce-cart .cart_totals .shipping-calculator-form { margin-top: 10px; }
body.woocommerce-cart .cart_totals .shipping-calculator-form .form-row { margin-bottom: 8px; }
body.woocommerce-cart .cart_totals .shipping-calculator-form input, body.woocommerce-cart .cart_totals .shipping-calculator-form select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d7dee8; border-radius: 10px; }
/* Proceed CTA */
body.woocommerce-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 14px 20px; border-radius: 12px;
  background: #17C0E0 !important; border-color: #17C0E0 !important; color: #fff !important; font-size: 17px; font-weight: 800; text-decoration: none; transition: background .18s ease, transform .18s ease;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #12A3BF !important; transform: translateY(-1px); }
body.woocommerce-cart .cart-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
body.woocommerce-cart .cart-trust span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #334155; }
body.woocommerce-cart .cart-trust svg { width: 16px; height: 16px; flex: none; color: #17C0E0; }

/* Empty cart */
body.woocommerce-cart .cart-empty { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 20px; text-align: center; font-size: 16px; font-weight: 600; color: #0E2444; }
body.woocommerce-cart .return-to-shop { text-align: center; margin: 16px 0 0; }
body.woocommerce-cart .return-to-shop a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 12px; background: #17C0E0; color: #fff !important; font-weight: 800; text-decoration: none; }

/* Cross-sells: reuse shop cards */
body.woocommerce-cart .cross-sells { grid-column: 1 / -1; margin-top: 32px; }
body.woocommerce-cart .cross-sells > h2 { font-size: 22px; font-weight: 800; color: #0E2444; margin-bottom: 16px; }

/* Footer brand column: keep dark background on mobile (was inheriting page cream) */
@media (max-width: 991px) { footer .main_foot_inr .foot_box.content { padding: 24px 0 8px !important; } footer .main_foot_inr .foot_box.content p { text-align: left; } }
