/* =========================================================
   Shopifyカート（Storefront API連携・動作確認用・一時的）
   配置: assets/css/al/52-shopify-cart.css

   構成は 51-reference.css の .lr-reference-modal を踏襲。
   本運用の購入導線が固まったら、このファイルごと削除する想定。
   ========================================================= */

/* 右からスライドインするドロワー型。背景（バックドロップ）はフェード、
   パネル本体はtransformでスライド（フェードと分けた方が動きが軽く見える）。 */
.lr-shopify-cart {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--lr-ease), visibility var(--lr-ease);
}
.lr-shopify-cart[data-open="true"] {
	opacity: 1;
	visibility: visible;
}
.lr-shopify-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 400px;
	overflow-y: auto;
	background: #fff;
	padding: var(--lr-space-lg) var(--lr-space-md);
	transform: translateX(100%);
	transition: transform var(--lr-ease);
}
.lr-shopify-cart[data-open="true"] .lr-shopify-cart__panel {
	transform: translateX(0);
}
.lr-shopify-cart__title {
	margin: 0 0 var(--lr-space-md);
	padding-right: 44px;
}
.lr-shopify-cart__close {
	position: absolute;
	top: var(--lr-space-md);
	right: var(--lr-space-md);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lr-bg-subtle, #f2f0ef);
	color: var(--lr-text);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.lr-shopify-cart__close:hover {
	background: var(--lr-border);
}

.lr-shopify-cart__line {
	display: flex;
	gap: var(--lr-space-sm);
	padding: var(--lr-space-sm) 0;
	border-bottom: 1px solid var(--lr-border);
}
.lr-shopify-cart__line-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}
.lr-shopify-cart__line-title {
	margin: 0 0 4px;
	font-size: var(--lr-font-sm);
}
.lr-shopify-cart__line-meta {
	margin: 0;
	font-size: var(--lr-font-xs);
	color: var(--lr-text-muted);
}
.lr-shopify-cart__line-remove {
	flex-shrink: 0;
	align-self: flex-start;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--lr-border);
	border-radius: 50%;
	background: #fff;
	color: var(--lr-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.lr-shopify-cart__line-remove:hover {
	background: var(--lr-bg-subtle, #f2f0ef);
	color: var(--lr-text);
}

.lr-shopify-cart__footer {
	margin-top: var(--lr-space-md);
	padding-top: var(--lr-space-md);
	border-top: 2px solid var(--lr-text);
}
.lr-shopify-cart__total {
	margin: 0 0 var(--lr-space-sm);
	font-weight: 700;
	text-align: right;
}
.lr-shopify-cart__checkout {
	display: block;
	width: 100%;
	text-align: center;
}
.lr-shopify-cart__clear {
	display: block;
	width: 100%;
	margin-top: var(--lr-space-sm);
	padding: var(--lr-space-2xs) 0;
	border: 0;
	background: none;
	color: var(--lr-text-muted);
	font-size: var(--lr-font-xs);
	text-decoration: underline;
	cursor: pointer;
}
.lr-shopify-cart__clear:hover {
	color: var(--lr-text);
}

body.al-shopify-cart-open .lr-header {
	visibility: hidden;
}
