/* ============================================================
 * cartShow.css
 * ============================================================ */

.cart-page {
	background: #f3f4f6;
	padding: 46px 0 90px;
}

.cart-container {
	max-width: 900px;
}

/* ============================================================
 * ステッパー
 * ============================================================ */

.cart-stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 40px;
	gap: 0;
}

.cart-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.cart-step-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	background: #ffffff;
	color: #9ca3af;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-step.is-current .cart-step-circle {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.cart-step-label {
	font-size: 12px;
	font-weight: 700;
	color: #9ca3af;
	text-align: center;
	white-space: nowrap;
}

.cart-step.is-current .cart-step-label {
	color: #2563eb;
}

.cart-step-line {
	flex: 1;
	height: 2px;
	background: #d1d5db;
	margin: 0 8px;
	margin-bottom: 22px;
	min-width: 24px;
}

/* ============================================================
 * ページタイトル
 * ============================================================ */

.cart-page-title {
	font-size: 28px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 28px;
	text-align: center;
}

/* ============================================================
 * カートが空の場合
 * ============================================================ */

.cart-empty {
	background: #ffffff;
	border: 1px solid #dbe3ee;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
	padding: 60px 30px;
	text-align: center;
	font-size: 18px;
	color: #6b7280;
}

/* ============================================================
 * 商品テーブル
 * ============================================================ */

.cart-card {
	background: #ffffff;
	border: 1px solid #dbe3ee;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
	overflow: hidden;
	margin-bottom: 32px;
}

.cart-table-wrap {
	overflow-x: auto;
}

.cart-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0;
}

.cart-table thead th {
	background: #111827;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	padding: 18px 16px;
	border: none;
	vertical-align: middle;
}

.cart-table thead th:first-child {
	padding-left: 24px;
}

.cart-table tbody tr {
	border-top: 1px solid #edf2f7;
}

.cart-table tbody tr:hover {
	background: #f9fafb;
}

.cart-table tbody td {
	padding: 18px 16px;
	vertical-align: middle;
	border: none;
}

.cart-table tbody td:first-child {
	padding-left: 24px;
}

.cart-product-name {
	font-size: 16px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 4px;
}

.cart-product-price {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 0;
}

.cart-product-subtotal-sp {
	font-size: 14px;
	font-weight: 700;
	color: #2563eb;
	margin-top: 4px;
}

.cart-quantity {
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	text-align: center;
	margin-bottom: 8px;
}

.cart-qty-btns {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.cart-qty-btns img {
	width: 30px;
	height: 30px;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.15s;
}

.cart-qty-btns img:hover {
	opacity: 1;
}

.cart-subtotal-pc {
	font-size: 16px;
	font-weight: 700;
	color: #374151;
	text-align: right;
	white-space: nowrap;
}

.cart-delete-btn img {
	width: 28px;
	height: 28px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s;
}

.cart-delete-btn img:hover {
	opacity: 1;
}

/* 合計行 */
.cart-total-row td {
	background: #f9fafb;
	padding: 20px 24px !important;
	text-align: right;
}

.cart-total-label {
	font-size: 16px;
	font-weight: 700;
	color: #374151;
	margin-right: 16px;
}

.cart-total-price {
	font-size: 32px;
	font-weight: 800;
	color: #2563eb;
	white-space: nowrap;
}

/* ============================================================
 * アクションボタン
 * ============================================================ */

.cart-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.cart-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 56px;
	padding: 0 24px;
	border-radius: 14px;
	border: 2px solid #2563eb;
	background: #ffffff;
	color: #2563eb;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.cart-btn-secondary:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
}

.cart-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 56px;
	padding: 0 24px;
	border-radius: 14px;
	border: none;
	background: #ff7a00;
	color: #ffffff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 22px rgba(255, 122, 0, 0.22);
	transition: background 0.15s;
}

.cart-btn-primary:hover {
	background: #f26f00;
}

/* ============================================================
 * レスポンシブ
 * ============================================================ */

@media (max-width: 767.98px) {
	.cart-page {
		padding: 28px 0 60px;
	}

	.cart-stepper {
		gap: 0;
	}

	.cart-step-circle {
		width: 34px;
		height: 34px;
		font-size: 13px;
	}

	.cart-step-label {
		font-size: 10px;
	}

	.cart-step-line {
		min-width: 12px;
		margin: 0 4px;
		margin-bottom: 18px;
	}

	.cart-page-title {
		font-size: 22px;
	}

	.cart-actions {
		flex-direction: column;
		align-items: center;
	}

	.cart-btn-secondary,
	.cart-btn-primary {
		width: 100%;
		min-width: 0;
	}

	.cart-total-price {
		font-size: 24px;
	}
}
