@charset "UTF-8";
/* CSS Document */
/* Y・PiECE EC カートページ専用 */


/******************************************************

PC設定 1200px以上の場合に適用

*******************************************************/

.yp-cart {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	align-items: start;
	}

/* ===== 空カート ===== */

.yp-cartempty {
	text-align: center;
	padding: 80px 0;
	}

.yp-cartempty__icon {
	margin-bottom: 12px;
	line-height: 0;
	}

.yp-cartempty .btn {
	margin-top: 50px;
	}

.yp-cartempty__title {
	font-size: 18px;
	font-weight: 600;
	color: #1A2A5E;
	margin-bottom: 8px;
	}

.yp-cartempty__txt {
	font-size: 13px;
	color: #9aa3b2;
	margin-bottom: 24px;
	}


/* ===== 明細テーブル ===== */

.yp-carthead {
	display: grid;
	grid-template-columns: 1fr 120px 140px 100px 40px;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 2px solid #1A2A5E;
	}

.yp-carthead__cell {
	font-size: 12px;
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-carthead__cell--c {
	text-align: center;
	}

.yp-carthead__cell--r {
	text-align: right;
	}

.yp-cartrow {
	display: grid;
	grid-template-columns: 1fr 120px 140px 100px 40px;
	gap: 16px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid #e7eaf0;
	}

.yp-cartprod {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	}

.yp-cartprod__thumb {
	width: 80px;
	height: 80px;
	border-radius: 2px;
	flex-shrink: 0;
	overflow: hidden;
	background-color: #eef0f4;
	background-image: repeating-linear-gradient(135deg, rgba(26,42,94,0.05) 0 8px, transparent 8px 16px);
	}

.yp-cartprod__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	}

.yp-cartprod__cat {
	display: inline-block;
	font-size: 10px;
	color: #1A2A5E;
	background: #eef1f8;
	padding: 2px 8px;
	border-radius: 2px;
	margin-bottom: 5px;
	}

.yp-cartprod__name {
	font-size: 14px;
	font-weight: 600;
	color: #1A2A5E;
	margin-bottom: 4px;
	line-height: 1.4;
	}

.yp-cartprod__note {
	font-size: 11px;
	color: #9aa3b2;
	}

.yp-cartcell {
	display: flex;
	align-items: center;
	}

.yp-cartcell--price {
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-cartcell--sub {
	justify-content: flex-end;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #1A2A5E;
	}

.yp-cartcell--qty {
	justify-content: center;
	gap: 8px;
	}

.yp-cartcell--del {
	justify-content: center;
	}

.yp-cartqty__btn {
	width: 30px;
	height: 30px;
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555;
	cursor: pointer;
	background: #fff;
	font-family: inherit;
	}

.yp-cartqty__input {
	width: 38px;
	height: 30px;
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #1A2A5E;
	background: #fff;
	font-family: inherit;
	}

.yp-cartdel {
	background: none;
	border: none;
	color: #ccd2dd;
	font-size: 18px;
	cursor: pointer;
	font-family: inherit;
	padding: 4px 8px;
	}

.yp-cartdel:hover {
	color: #c0392b;
	}

.yp-cartactions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	}

.yp-cartactions__continue {
	height: 40px;
	padding: 0 20px;
	border: 1px solid #1A2A5E;
	border-radius: 2px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #1A2A5E;
	text-decoration: none;
	}

.yp-cartactions__continue:hover {
	background: #f5f7fa;
	}

.yp-cartactions__clear {
	height: 40px;
	padding: 0 20px;
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	background: #fff;
	font-size: 13px;
	color: #9aa3b2;
	cursor: pointer;
	font-family: inherit;
	}

.yp-cartactions__clear:hover {
	border-color: #c0392b;
	color: #c0392b;
	}

/* ===== 注文金額サマリー ===== */

.yp-summary {
	position: sticky;
	top: 24px;
	}

.yp-summary__box {
	border: 1px solid #e7eaf0;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	}

.yp-summary__head {
	background: #1A2A5E;
	padding: 14px 20px;
	}

.yp-summary__headtitle {
	color: #F5CD1A;
	font-size: 16px;
	font-weight: 600;
	}

.yp-summary__body {
	padding: 20px;
	}

.yp-summary__row {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	color: #555;
	padding: 8px 0;
	}

.yp-summary__free {
	color: #1a7a4a;
	font-weight: 600;
	}

.yp-summary__note {
	font-size: 11px;
	padding: 7px 11px;
	border-radius: 2px;
	margin: 10px 0;
	}

.yp-summary__note--ok {
	color: #1a7a4a;
	background: #e6f7ee;
	}

.yp-summary__note--warn {
	color: #c47d00;
	background: #fff8cc;
	}

.yp-summary__total {
	display: flex;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 600;
	color: #1A2A5E;
	border-top: 2px solid #1A2A5E;
	padding-top: 14px;
	margin-top: 6px;
	}

.yp-summary__checkout {
	width: 100%;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: #1A2A5E;
	border: none;
	border-radius: 2px;
	font-weight: 600;
	color: #fff;
	margin: 16px 0 10px;
	cursor: pointer;
	font-family: inherit;
	}

.yp-summary__checkout:hover {
	background: #22397a;
	}



.yp-summary__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 20px;
	}

.yp-summary__trustitem {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #9aa3b2;
	}



/******************************************************

タブレットの設定 960px〜1199pxの場合に適用

*******************************************************/

@media screen and (max-width: 1199px){

.yp-cart {
	grid-template-columns: 1fr 320px;
	}

}



/******************************************************

タブレットの設定 768px〜959pxの場合に適用

*******************************************************/

@media screen and (max-width: 959px){

.yp-cart {
	grid-template-columns: 1fr;
	}

}



/******************************************************

SPの設定 767px以下の場合に適用

*******************************************************/

@media screen and (max-width: 767px){

.yp-cartempty .btn {
	margin-top: 20px;
	}

.yp-summary__headtitle {
	font-size: 14px;
	}

.yp-summary__trust {
	margin-top: 10px;
	}

.yp-summary__row {
	font-size: 14px;
	}

.yp-summary__trustitem {
	font-size: 12px;
	}

.yp-cart {
	}

.yp-carthead {
	display: none;
	}

.yp-cartrow {
	grid-template-columns: 1fr;
	gap: 12px;
	}

.yp-cartcell--price,
.yp-cartcell--sub {
	justify-content: flex-start;
	}

.yp-cartactions {
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	}

}

/* 選択オプション表示 */
.yp-cartprod__opt {
	margin: 4px 0 2px;
	font-size: 12.5px;
	font-weight: 600;
	color: #1A2A5E;
	background: #eef1f8;
	}
