/**
 * Kicks cart page — scoped to .cb-kicks-cart root.
 *
 * Uses the same design tokens as the product page (Archivo +
 * Archivo Black, lime green accent, soft gray surfaces, pill shapes).
 */

.cb-kicks-cart {
	--kk-bg: #ffffff;
	--kk-ink: #0a0a0a;
	--kk-muted: #6b6b6b;
	--kk-border: #e6e6e6;
	--kk-surface: #f5f5f5;
	--kk-surface-2: #eeeeee;
	--kk-green: #c6f24a;
	--kk-green-ink: #0a0a0a;
	--kk-radius: 14px;
	--kk-radius-sm: 8px;
	--kk-container: 1240px;

	font-family: "Archivo", "Inter", system-ui, -apple-system, sans-serif;
	color: var(--kk-ink);
	background: var(--kk-bg);
	line-height: 1.5;
	padding: 20px 0 80px;
}

.cb-kicks-cart * { box-sizing: border-box; }
.cb-kicks-cart img { max-width: 100%; height: auto; display: block; }
.cb-kicks-cart a { color: inherit; text-decoration: none; }
.cb-kicks-cart button { font-family: inherit; cursor: pointer; }

.cb-kicks-cart__wrap {
	max-width: var(--kk-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ============ HEADER ============ */
.cb-kicks-cart__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0 32px;
	border-bottom: 1px solid var(--kk-border);
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.cb-kicks-cart__title {
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	line-height: 0.95;
	margin: 0;
}
.cb-kicks-cart__count {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kk-muted);
	font-weight: 600;
}
.cb-kicks-cart__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--kk-muted);
	transition: color .15s ease;
}
.cb-kicks-cart__back:hover { color: var(--kk-ink); }

/* ============ LAYOUT ============ */
.cb-kicks-cart__grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}
@media (max-width: 960px) {
	.cb-kicks-cart__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ ITEMS COLUMN ============ */
.cb-kicks-cart__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cb-kicks-item {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 20px;
	background: var(--kk-surface);
	border-radius: var(--kk-radius);
	padding: 16px;
	align-items: center;
	transition: background .2s ease, opacity .25s ease, transform .25s ease;
}
.cb-kicks-item:hover { background: var(--kk-surface-2); }
.cb-kicks-item.is-updating { opacity: .5; pointer-events: none; }
.cb-kicks-item.is-removing {
	opacity: 0;
	transform: translateX(-10px);
}

@media (max-width: 640px) {
	.cb-kicks-item {
		grid-template-columns: 90px 1fr;
		gap: 14px;
		position: relative;
	}
}

.cb-kicks-item__thumb {
	aspect-ratio: 1 / 1;
	border-radius: var(--kk-radius-sm);
	overflow: hidden;
	background: #fff;
}
.cb-kicks-item__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
}

.cb-kicks-item__body { min-width: 0; }
.cb-kicks-item__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--kk-ink);
	line-height: 1.35;
}
.cb-kicks-item__title a:hover { text-decoration: underline; }
.cb-kicks-item__meta {
	font-size: 13px;
	color: var(--kk-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}
.cb-kicks-item__meta-key {
	font-weight: 600;
	color: var(--kk-ink);
}
.cb-kicks-item__price-mobile {
	display: none;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
}
@media (max-width: 640px) {
	.cb-kicks-item__price-mobile { display: block; }
}

.cb-kicks-item__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.cb-kicks-item__remove {
	background: none;
	border: 0;
	color: var(--kk-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.cb-kicks-item__remove:hover {
	background: #fee2e2;
	color: #991b1b;
}
.cb-kicks-item__remove-icon {
	width: 14px; height: 14px;
	display: inline-grid;
	place-items: center;
	font-size: 14px;
	line-height: 1;
}

.cb-kicks-item__price {
	text-align: right;
	font-size: 16px;
	font-weight: 700;
	color: var(--kk-ink);
	white-space: nowrap;
	align-self: center;
	min-width: 80px;
}
.cb-kicks-item__price del {
	display: block;
	font-size: 12px;
	color: var(--kk-muted);
	font-weight: 500;
}
@media (max-width: 640px) {
	.cb-kicks-item__price { display: none; }
}

/* Quantity stepper — reuse the product-page pill */
.cb-kicks-item .cb-kicks-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--kk-border);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	height: 36px;
}
.cb-kicks-item .cb-kicks-qty__btn {
	width: 36px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--kk-ink);
	font-size: 16px;
	font-weight: 700;
	padding: 0;
}
.cb-kicks-item .cb-kicks-qty__btn:hover { background: var(--kk-surface); }
.cb-kicks-item .cb-kicks-qty__btn:disabled {
	opacity: .3;
	cursor: not-allowed;
}
.cb-kicks-item .cb-kicks-qty__input {
	width: 44px;
	border: 0;
	text-align: center;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	background: transparent;
	-moz-appearance: textfield;
}
.cb-kicks-item .cb-kicks-qty__input::-webkit-outer-spin-button,
.cb-kicks-item .cb-kicks-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.cb-kicks-item .cb-kicks-qty__input:focus { outline: none; }

/* Sold-individually: quantity shown as static pill */
.cb-kicks-item__qty-fixed {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--kk-border);
	font-weight: 700;
	font-size: 14px;
	color: var(--kk-muted);
}

/* ============ SUMMARY COLUMN ============ */
.cb-kicks-summary {
	position: sticky;
	top: 20px;
	background: #fff;
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	padding: 24px;
}
@media (max-width: 960px) {
	.cb-kicks-summary { position: static; }
}

.cb-kicks-summary__title {
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0 0 20px;
	line-height: 1;
}

.cb-kicks-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	font-size: 14px;
	color: #333;
}
.cb-kicks-summary__row--muted { color: var(--kk-muted); font-size: 13px; }
.cb-kicks-summary__row .amount { font-weight: 700; color: var(--kk-ink); }
.cb-kicks-summary__row .amount del { font-weight: 500; color: var(--kk-muted); margin-right: 6px; }

.cb-kicks-summary__divider {
	border: 0;
	border-top: 1px solid var(--kk-border);
	margin: 12px 0;
}

.cb-kicks-summary__total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.cb-kicks-summary__total {
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: 24px;
	letter-spacing: -0.01em;
	text-transform: none;
}

/* Coupon */
.cb-kicks-coupon {
	margin: 16px 0 20px;
	padding: 16px;
	background: var(--kk-surface);
	border-radius: var(--kk-radius-sm);
}
.cb-kicks-coupon__toggle {
	background: none;
	border: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--kk-ink);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	cursor: pointer;
}
.cb-kicks-coupon__toggle span:last-child {
	font-weight: 600;
	color: var(--kk-muted);
	font-size: 18px;
	transition: transform .2s ease;
}
.cb-kicks-coupon.is-open .cb-kicks-coupon__toggle span:last-child {
	transform: rotate(45deg);
}
.cb-kicks-coupon__body {
	display: none;
	margin-top: 12px;
	gap: 8px;
}
.cb-kicks-coupon.is-open .cb-kicks-coupon__body { display: flex; }
.cb-kicks-coupon__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--kk-border);
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	background: #fff;
}
.cb-kicks-coupon__input:focus {
	outline: none;
	border-color: var(--kk-ink);
}
.cb-kicks-coupon__apply {
	padding: 10px 18px;
	background: var(--kk-ink);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.cb-kicks-coupon__apply:hover { background: #1f2937; }

/* Applied coupons */
.cb-kicks-coupon__applied {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 10px;
}
.cb-kicks-coupon__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--kk-border);
	padding: 4px 4px 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.cb-kicks-coupon__chip-remove {
	width: 20px; height: 20px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--kk-surface);
	border: 0;
	color: var(--kk-muted);
	font-size: 14px;
	line-height: 1;
}
.cb-kicks-coupon__chip-remove:hover {
	background: #fee2e2;
	color: #991b1b;
}

/* Checkout button */
.cb-kicks-summary__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 18px;
	background: var(--kk-green);
	color: var(--kk-green-ink);
	border: 0;
	border-radius: 999px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: transform .15s ease, background .15s ease;
	margin-bottom: 10px;
}
.cb-kicks-summary__checkout:hover {
	background: #d5ff5d;
	transform: translateY(-1px);
}

.cb-kicks-summary__continue {
	display: block;
	text-align: center;
	font-size: 13px;
	color: var(--kk-muted);
	font-weight: 600;
	padding: 10px;
	transition: color .15s ease;
}
.cb-kicks-summary__continue:hover { color: var(--kk-ink); }

/* Trust features on summary */
.cb-kicks-summary__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--kk-border);
}
.cb-kicks-summary__trust-item {
	text-align: center;
	font-size: 11px;
	color: var(--kk-muted);
	font-weight: 600;
	line-height: 1.3;
}
.cb-kicks-summary__trust-icon {
	font-size: 18px;
	display: block;
	margin-bottom: 4px;
}

/* ============ EMPTY STATE ============ */
.cb-kicks-cart-empty {
	text-align: center;
	padding: 80px 20px;
}
.cb-kicks-cart-empty__icon {
	width: 80px;
	height: 80px;
	background: var(--kk-surface);
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	font-size: 36px;
	margin-bottom: 24px;
}
.cb-kicks-cart-empty__title {
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: clamp(32px, 4.5vw, 56px);
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 12px;
}
.cb-kicks-cart-empty__text {
	font-size: 16px;
	color: var(--kk-muted);
	margin: 0 0 28px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}
.cb-kicks-cart-empty__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--kk-green);
	color: var(--kk-green-ink);
	border-radius: 999px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: transform .15s ease, background .15s ease;
}
.cb-kicks-cart-empty__cta:hover { background: #d5ff5d; transform: translateY(-1px); }

/* ============ CROSS-SELLS ============ */
.cb-kicks-cart-crosssells {
	margin-top: 80px;
	padding-top: 40px;
	border-top: 1px solid var(--kk-border);
}
.cb-kicks-cart-crosssells__title {
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 900;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0 0 24px;
	line-height: 1;
}
.cb-kicks-cart-crosssells .products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 900px) { .cb-kicks-cart-crosssells .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cb-kicks-cart-crosssells .products { grid-template-columns: 1fr; } }
.cb-kicks-cart-crosssells .products li {
	background: var(--kk-surface);
	border-radius: var(--kk-radius);
	padding: 16px;
	list-style: none;
	margin: 0;
	transition: background .2s ease;
}
.cb-kicks-cart-crosssells .products li:hover { background: var(--kk-surface-2); }
.cb-kicks-cart-crosssells .products li a { display: block; }
.cb-kicks-cart-crosssells .products li img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--kk-radius-sm);
	margin-bottom: 12px;
	background: #fff;
}
.cb-kicks-cart-crosssells .products li h2,
.cb-kicks-cart-crosssells .products li .woocommerce-loop-product__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 4px;
}
.cb-kicks-cart-crosssells .products li .price {
	font-size: 14px;
	font-weight: 700;
}
.cb-kicks-cart-crosssells .products li .button,
.cb-kicks-cart-crosssells .products li .added_to_cart { display: none; }
