/* Cart page — Shopify-style layout. */

.woocommerce-cart .site-content { width:100%; max-width:none; padding:0; }
.woocommerce-cart #primary { width:100% !important; max-width:none; margin:0; padding:0; }
.woocommerce-cart .site-main { width:min(1100px,calc(100% - 3rem)); margin:3.5rem auto 5rem; }
.woocommerce-cart .ast-article-single { padding:0; background:transparent; }
.woocommerce-cart .entry-header { display:none; }

.woscent-cart__header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 2.5rem; }
.woscent-cart__title { margin:0; color:var(--woscent-ink); font-family:Georgia,'Times New Roman',serif; font-size:clamp(2rem,4vw,2.6rem); font-weight:400; letter-spacing:-.01em; line-height:1.1; text-transform:none; }
.woscent-cart__continue { color:var(--woscent-ink); font-size:.95rem; text-decoration:underline; text-underline-offset:.3rem; }
.woscent-cart__continue:hover { color:var(--woscent-ink); text-decoration-thickness:2px; }

/* Line items */
.woocommerce-cart table.woscent-cart-table { width:100%; margin:0; border:0; border-collapse:collapse; border-radius:0; background:transparent; }
.woocommerce-cart table.woscent-cart-table th,
.woocommerce-cart table.woscent-cart-table td { border:0; background:transparent; }
.woocommerce-page table.woscent-cart-table thead { background:transparent; }
.woocommerce-cart table.woscent-cart-table thead th { padding:0 0 .9rem; border-bottom:1px solid var(--woscent-line); color:#6b6359; font-size:.7rem; font-weight:500; letter-spacing:.13em; text-align:left; text-transform:uppercase; }
.woocommerce-cart table.woscent-cart-table thead .product-subtotal { text-align:right; }
.woocommerce-cart table.woscent-cart-table tbody td { padding:2rem 0 0; vertical-align:top; }
.woocommerce-cart table.woscent-cart-table tbody tr:last-child td { padding-bottom:2rem; border-bottom:1px solid var(--woscent-line); }
.woscent-cart-table .product-thumbnail { width:120px; padding-right:1.5rem !important; }
.woocommerce-page table.woscent-cart-table .product-thumbnail img { display:block; width:96px; height:120px; max-width:none; object-fit:cover; background:#f0e7d8; }
.woscent-cart-table .product-name { padding-right:2rem !important; }
.woscent-cart-item__title { display:block; color:var(--woscent-ink); font-family:Georgia,'Times New Roman',serif; font-size:1.15rem; line-height:1.3; text-decoration:none; }
a.woscent-cart-item__title:hover { color:var(--woscent-ink); text-decoration:underline; text-underline-offset:.2rem; }
.woscent-cart-item__price { margin-top:.4rem; color:#5c544b; font-size:.92rem; }
.woscent-cart-item__price del { margin-right:.35rem; opacity:.65; }
.woscent-cart-item__price ins { text-decoration:none; }
.woscent-cart-table .product-name dl.variation { margin:.4rem 0 0; color:#5c544b; font-size:.85rem; }
.woscent-cart-table .product-name dl.variation dt,
.woscent-cart-table .product-name dl.variation dd { display:inline; margin:0; }
.woscent-cart-table .product-name dl.variation dd p { display:inline; margin:0; }
.woscent-cart-table .product-quantity { width:220px; }
.woscent-cart-table .product-subtotal { width:130px; color:var(--woscent-ink); font-size:1rem; text-align:right; white-space:nowrap; }

.woscent-cart-item__quantity { display:flex; align-items:center; gap:.75rem; }
.woocommerce-cart .woscent-cart-item__remove,
.woocommerce .woscent-cart-table a.remove.woscent-cart-item__remove { display:grid; width:36px; height:36px; place-items:center; border-radius:0; background:transparent; color:#5c544b !important; font-size:inherit; line-height:1; }
.woocommerce .woscent-cart-table a.remove.woscent-cart-item__remove::before,
.woocommerce .woscent-cart-table a.remove.woscent-cart-item__remove::after { display:none; }
.woocommerce .woscent-cart-table a.remove.woscent-cart-item__remove:hover { background:transparent; color:var(--woscent-ink) !important; }

/* Manual update button is only for visitors without JavaScript. */
.woscent-cart__actions { margin:1rem 0 0; text-align:right; }
.woscent-cart-autoupdate .woscent-cart__update { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.woscent-cart-autoupdate .woscent-cart__actions { margin:0; }

/* Totals */
.woscent-cart-totals { width:min(100%,380px); margin:2rem 0 0 auto; }
.woscent-cart-totals__row { display:flex; justify-content:space-between; gap:1rem; margin:0 0 .5rem; color:var(--woscent-ink); }
.woscent-cart-totals__discount { color:#5c544b; font-size:.92rem; }
.woscent-cart-totals__total { align-items:baseline; font-size:1.05rem; }
.woscent-cart-totals__total strong { font-size:1.15rem; font-weight:600; }
.woscent-cart-totals__note { margin:0 0 1.4rem; color:#6b6359; font-size:.85rem; line-height:1.5; text-align:right; }
.woocommerce-cart .wc-proceed-to-checkout { padding:0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display:flex; text-transform:none; font-family:inherit; align-items:center; justify-content:center; width:100%; min-height:52px; margin:0; padding:.9rem 1.5rem; border-radius:var(--woscent-radius-sm); background:var(--woscent-ink); color:#fff; font-size:1rem; font-weight:500; letter-spacing:.04em; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background:#3a3631; color:#fff; }

/* Empty cart */
.woscent-cart-empty { padding:4rem 0 2rem; text-align:center; }
.woscent-cart-empty .woscent-cart__title { margin-bottom:2rem; }
.woocommerce-cart .woscent-cart-empty .return-to-shop { margin:0; }
.woocommerce-cart .woscent-cart-empty .return-to-shop .button { display:inline-flex; min-height:52px; align-items:center; padding:.9rem 2.5rem; border-radius:var(--woscent-radius-sm); background:var(--woscent-ink); color:#fff; font-size:1rem; letter-spacing:.04em; }
.woocommerce-cart .woscent-cart-empty .return-to-shop .button:hover { background:#3a3631; }

/* While WooCommerce's AJAX update runs. */
.woocommerce-cart .blockUI.blockOverlay { background:rgba(250,248,243,.6) !important; }

@media (max-width:749px) {
	.woocommerce-cart .site-main { width:calc(100% - 2rem); margin:2rem auto 3.5rem; }
	.woscent-cart__header { margin-bottom:1.5rem; }
	.woocommerce-cart table.woscent-cart-table,
	.woocommerce-cart table.woscent-cart-table thead,
	.woocommerce-cart table.woscent-cart-table tbody { display:block; width:100%; }
	.woocommerce-cart table.woscent-cart-table thead tr { display:flex; justify-content:space-between; border-bottom:1px solid var(--woscent-line); }
	.woocommerce-cart table.woscent-cart-table thead th { border-bottom:0; }
	.woocommerce-cart table.woscent-cart-table thead .product-quantity { display:none; }
	.woocommerce-cart table.woscent-cart-table tbody tr { display:grid; grid-template-columns:88px minmax(0,1fr) auto; grid-template-areas:'thumb name total' 'thumb qty qty'; column-gap:1rem; padding:1.5rem 0 0; }
	.woocommerce-cart table.woscent-cart-table tbody tr:last-child { padding-bottom:1.5rem; border-bottom:1px solid var(--woscent-line); }
	.woocommerce-cart table.woscent-cart-table tbody td,
	.woocommerce-cart table.woscent-cart-table tbody tr:last-child td { display:block; width:auto; padding:0 !important; border:0; text-align:left; }
	.woocommerce-cart table.woscent-cart-table tbody td::before { display:none; }
	.woscent-cart-table .product-thumbnail { grid-area:thumb; }
	.woocommerce-page table.woscent-cart-table .product-thumbnail img { width:88px; height:110px; }
	.woscent-cart-table .product-name { grid-area:name; }
	.woscent-cart-item__title { font-size:1.05rem; }
	.woscent-cart-table .product-subtotal { grid-area:total; text-align:right !important; }
	.woscent-cart-table .product-quantity { grid-area:qty; margin-top:1rem; }
	.woscent-cart-totals { width:100%; }
}
