/*
  ショッピングカートページ
*/
.cart-container {
  	max-width       : 960px;
  	margin          : 2em auto;
  	padding         : 20px;
  	background      : #fffefc;
  	border          : 2px solid #ffc0cb;
  	border-radius   : 10px;
  	font-family     : "Kosugi Maru", sans-serif;
  	box-shadow      : 2px 4px 10px rgba(0,0,0,0.1);
}
/* カート全体のレイアウト調整 */
.cart-container {
  	max-width       : 960px;
  	margin          : auto;
  	padding         : 10px;
  	box-sizing      : border-box;
}
.cart-container h2 {
  	margin-bottom   : 20px;
  	text-align      : center;
  	color           : #ff69b4;
}

/* カートがからの場合 */
.empty-cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #555;
  font-family: 'Helvetica Neue', sans-serif;
}

.empty-cart-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-cart-message {
  font-size: 1.2rem;
  line-height: 1.6;
}

.empty-cart-message span {
  color: #999;
  font-size: 0.95rem;
}


/* テーブル風 → カード風に切り替え */
.cart-table {
  	width           : 100%;
  	border-collapse : collapse;
}

.cart-table th, .cart-table td {
  	padding         : 10px;
  	text-align      : center;
  	border-bottom   : 1px solid #eee;
  	vertical-align  : middle;
}
.cart-table th, .cart-table td {
  	padding         : 10px;
  	border-bottom   : 1px solid #ccc;
  	text-align      : left;
}

.cart-table th {
  	background-color: #ffe4ec;
}

/* 画像のサイズ調整 */
.cart-table img {
	max-width       : 60px;
	height          : auto;
  	border-radius   : 6px;
}
.cart-table .color-box {
  	display         : inline-block;
  	width           : 20px;
  	height          : 20px;
  	margin-right    : 6px;
  	border          : 1px solid #ccc;
  	border-radius   : 3px;
  	vertical-align  : middle;
}

.cart-table select {
  	padding         : 5px;
  	border-radius   : 4px;
}

.delete-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #c00;
  padding: 5px;
  transition: color 0.2s ease;
}

.delete-icon:hover {
  color: #f33;
}

.cart-total {
  	margin-top      : 15px;
	text-align      : right;
  	font-weight     : bold;
  	font-size       : 1.2em;
  	color           : #d63384;
}

.checkout-button {
  	display         : block;
  	width           : 220px;
  	margin          : 20px auto 0;
  	padding         : 10px 20px;
  	background-color: #ff8bc2;
  	color           : #fff;
  	border          : none;
  	border-radius   : 6px;
  	font-size       : 1em;
  	cursor          : pointer;
}

.checkout-button:hover {
  	background-color: #ff69b4;
}

.remove-item {
    padding         : 5px 10px;
    font-size       : 0.8rem;	
}

/* タップしやすい UI サイズ */
button, .cart-button, .quantity-select {
  	min-width       : 44px;
  	min-height      : 44px; /* タップ領域確保 */
	padding         : 12px 18px;
  	font-size       : 16px;
  	border-radius   : 8px;
}

.cart-footer {
	text-align      : center;
    padding-bottom  : 20px;
}

.back-to-list {
  	display         : inline-block;
  	width           : 220px;
  	margin          : 2em auto 0;
  	padding         : 0.6em 1.2em;
  	background      : #87cefa;
  	color           : #fff;
  	font-size       : 1em;
  	font-weight     : bold;
  	border          : none;
  	border-radius   : 5px;
  	cursor          : pointer;
  	text-align      : center;
  	box-shadow      : 0 2px 5px rgba(0,0,0,0.1);
  	transition      : background 0.3s ease;
}
.back-to-list:hover {
  	background      : #00aaff;
}

/* おすすめ */
.recommend-section {
	position        : relative;
    width           : calc(100% - 20px);
    max-width       : 600px;
    margin          : 20px auto;
    padding         : 10px 10px;
    border          : 1px solid #aaa;
	border-radius   : 8px;
}
.recommend-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.recommend-title {
  margin: 0;
  font-size: 1.2em;
  text-align: center;
}

.scroll-button {
  background: #f0f0f0;
  border: none;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.scroll-button:hover {
  background: transparent;
}

.recommend-wrapper {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.recommend-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.recommend-scroll::-webkit-scrollbar {
  display: none;
}

.item-card {
  flex: 0 0 auto;
  width: 140px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-card img {
  width: 100%;
  border-radius: 4px;
}

.item-name {
  font-size: 0.85rem;
  margin-top: 6px;
}


/* モバイル用レイアウト */
@media screen and (max-width: 768px) {
	.cart-header {
		display         : none!important;
	}
  	.cart-item {
    	display         : flex;
    	flex-direction  : column;
    	gap             : 12px;
    	padding         : 12px;
    	background      : #fff8fc;
    	border-radius   : 12px;
    	box-shadow      : 0 2px 6px rgba(0,0,0,0.05);
  	}

  	.cart-item img {
    	max-width       : 100%;
    	height          : auto;
    	border-radius   : 8px;
  	}
    	
  	.cart-table, 
  	.cart-table thead, 
  	.cart-table tbody, 
  	.cart-table th, 
  	.cart-table td, 
  	.cart-table tr {
    	display         : block;
  	}

  	.cart-table tr {
    	margin-bottom   : 1rem;
    	padding         : 10px;
    	border          : 1px solid #ccc;
    	border-radius   : 10px;
    	background      : #fff;
  	}

  	.cart-table td {
    	position        : relative;
    	padding-left    : 10%; 
    	text-align      : right;
  	}

  	.cart-table td::before {
    	content         : attr(data-label);
    	position        : absolute;
    	width           : 45%;    	
    	left            : 10px;
    	top             : 10px;
    	font-weight     : bold;
    	text-align      : left;
    	white-space     : nowrap;
  	}

  	.cart-table th {
    	display         : none;
  	}

  	.cart-table img {
    	display         : block;
		width           : 100%;
    	max-width       : 120px;
    	height          : auto;
    	margin          : 0 auto 10px;
  	}
}

;