/* ==========================================================================
   CART PAGE
   ========================================================================== */

.crumbs { margin: 16px 0 8px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs__list li { display: flex; align-items: center; gap: 8px; }
.crumbs__list li:not(:last-child)::after { content: "/"; color: var(--line); }
.crumbs__list a { color: var(--ink-2); text-decoration: none; }
.crumbs__list a:hover { color: var(--blue); text-decoration: underline; }
.crumbs__list [aria-current] { color: var(--ink); font-weight: 500; }

.page-head { margin: 20px 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head__left { display: flex; flex-direction: column; gap: 4px; }
.page-head h1 { margin: 0; font-family: var(--fd); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.page-head__count { margin: 0; font-size: 14px; color: var(--muted); }
.continue-shopping { font-size: 13px; font-weight: 500; color: var(--blue); text-decoration: none; white-space: nowrap; }
.continue-shopping:hover { text-decoration: underline; }

.cart-demo-notice { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; padding: 10px 14px; background: #f8f9fc; border-radius: 8px; }

/* Cart layout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

/* Cart items */
.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cart-item:hover { border-color: var(--faint); }

.cart-item__info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cart-item__media { width: 72px; height: 72px; display: grid; place-items: center; background: #f6f7fa; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item__details { display: grid; gap: 2px; min-width: 0; }
.cart-item__name { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; text-decoration: none; }
.cart-item__name:hover { color: var(--blue); }
.cart-item__attrs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.cart-item__attrs dt { display: none; }
.cart-item__attrs dd { margin: 0; }
.cart-item__attrs dd:not(:last-child)::after { content: "·"; margin-left: 12px; color: var(--line); }
.cart-item__warranty { font-size: 11.5px; color: var(--green); margin-top: 2px; }

.cart-item__price { text-align: right; white-space: nowrap; }
.cart-item__price-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cart-item__price-value { font-family: var(--fd); font-size: 15px; font-weight: 700; color: var(--ink); }

.cart-item__right { display: flex; align-items: center; gap: 16px; }
.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: #f8f9fa; color: var(--ink); font-size: 15px; cursor: pointer; transition: background .15s; }
.qty-btn:hover { background: #eef0f3; }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-input { width: 44px; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; text-align: center; font-size: 13px; font-weight: 600; font-family: var(--fd); color: var(--ink); -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item__remove { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; transition: color .15s, background .15s; }
.cart-item__remove:hover { color: #c0392b; background: #fef5f5; }
.cart-item__remove svg { width: 18px; height: 18px; }

.cart-item__total { text-align: right; min-width: 110px; }
.cart-item__total-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.cart-item__total-value { font-family: var(--fd); font-size: 16px; font-weight: 700; color: var(--ink); }

/* Cart summary sidebar */
.cart-summary { position: sticky; top: 96px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cart-summary h2 { margin: 0 0 18px; font-family: var(--fd); font-size: 18px; font-weight: 600; }

.summary-lines { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.summary-lines li { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.summary-lines li span:last-child { font-weight: 600; color: var(--ink); }
.summary-lines .muted { color: var(--muted); font-weight: 400; }
.shipping-free { color: var(--green); font-weight: 500; font-size: 13px; text-align: center; }
.summary-divider { height: 1px; background: var(--line); margin: 12px 0; }
.summary-total { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-total span:last-child { font-family: var(--fd); font-size: 20px; letter-spacing: -.01em; }

.summary-note { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.summary-instalment { display: none; }

.checkout-btn { height: 50px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-top: 14px; }

.summary-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 10px; padding: 10px; background: #f8f9fc; border-radius: 8px; font-size: 12px; color: var(--muted); }
.summary-secure svg { width: 14px; height: 14px; color: var(--green); }

/* Empty cart state */
.cart-empty { text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cart-empty__icon { display: block; margin: 0 auto 16px; color: var(--faint); }
.cart-empty__icon svg { display: block; margin: 0 auto; }
.cart-empty h2 { margin: 0 0 6px; font-family: var(--fd); font-size: 20px; font-weight: 600; color: var(--ink); }
.cart-empty p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.cart-empty .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cart-empty .btn:hover { background: var(--blue-dark); }

/* Responsive */
@media (max-width: 1100px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 720px) {
  .cart-item { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .cart-item__info { flex-direction: column; align-items: flex-start; }
  .cart-item__right { flex-wrap: wrap; }
  .cart-item__price, .cart-item__total { text-align: left; }
  .cart-summary { padding: 20px 16px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}/* ==========================================================================
   WooCommerce default cart markup, restyled to theme tokens.
   (Full cart template ported later; this keeps the live site presentable
   on the default Woo markup in the meantime.) */
.woocommerce-cart .wrap, .woocommerce .wrap { padding: 24px var(--pad); }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 24px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.woocommerce table.shop_table thead th { background: var(--field); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); vertical-align: middle; }
.woocommerce table.shop_table img { width: 72px; height: 72px; object-fit: contain; background: #f6f7fa; border-radius: 6px; }
.woocommerce .shop-remove { color: var(--sale); font-size: 18px; text-decoration: none; }
.woocommerce .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce .product-name a:hover { color: var(--blue); }
.woocommerce .cart-collaterals, .woocommerce .cart_totals { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.woocommerce .woocommerce-remove-cart { margin: 12px 0; }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message { background: #eef3fb; border: 1px solid #d9e1f5; color: var(--ink-2); border-radius: 10px; padding: 14px 18px; margin: 0 0 18px; }
.woocommerce .shop-empty, .woocommerce .woocommerce-no-products-found { padding: 40px 0; color: var(--muted); }
.woocommerce .woocommerce-shipping-calculator, .woocommerce .cross_sell { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; }
/* Buttons in Woo contexts use the theme button system */
.woocommerce .button, .woocommerce a.button, .woocommerce input.button, .woocommerce .checkout-button { background: var(--blue); color: #fff; border: 0; border-radius: var(--r-ctl); padding: 12px 24px; font-family: var(--fb); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--blue-2); }

