﻿@charset "UTF-8";
/* 1. 全域 reset */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: border-box;
}

/* 2. HTML 基本設定（縮放 + 滑動） */
html {
  scroll-behavior: smooth;
  /* -webkit-text-size-adjust: 100%;  // 要用再打開 */
}

/* 3. 頁面背景（你原本的設定，可移到 layout.css 也可以留這） */
body {
  background: #FFFAFA;
	background:#a8dc84;
}

/* 4. 列表（如果你確定整站都不需要點點，就留） */
ol, ul {
  list-style: none;
}

/*LAYOUT*/

/*HEADER*/
header {
	width:100%;
	height:auto;
	overflow:hidden;
	margin:0 auto 0 auto;
	background:#727171;
}
img.logo{
	margin-left:20px;
}


#membercar ol {
    width: 100px;
    height: 60px;
    position: fixed;
    bottom: 0;
    right: 20px;
    background-color: #ff4f81;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
}

.shopcar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.shopcar-content {
display: none;
    position: absolute;
    bottom: 60px; /* 貼齊底部按鈕 */
    right: 0;
    width: 250px; /* 寬度稍微加寬一點點比較好放按鈕 */
    background-color: white;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    z-index: 10000;
    padding: 0; /* 讓邊距交給子層控制 */
    

    /* --- 核心佈局設定 --- */
    display: flex;           /* 設為 Flex 容器 */
    flex-direction: column;  /* 內容由上而下排列 */
    max-height: 250px;       /* 整體最高高度 */

}


.shopcar:not(:hover) .shopcar-content {
    display: none;
}


/* --- 商品捲動區 --- */
.shopcar-list {
    max-height: 250px; /* 超過這個高度才會出捲軸 */
    overflow-y: auto;
    padding: 5px ;
}

/* 讓捲軸美化一點（選配，僅限 Chrome/Edge/Safari） */
.shopcar-content::-webkit-scrollbar {
    width: 6px;
}
.shopcar-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* 只要滑鼠在 .shopcar 或 .shopcar-content 上，就保持顯示 */
.shopcar:hover .shopcar-content {
    display: block;
}

.shopcar-content li{
	width:95%;
	height:auto;
	overflow:hidden;
  margin:5px auto 5px auto ;
	padding:5px 0 5px 0;
}


.shopcar-content mark {
	width:15px;
	padding:5px 0;
  text-align:center;
	float:left;
	margin-right:5px;
}

.shopcar-content li a{
	width:auto;
	margin:0 auto;
	padding:0 ;
	float:right;
	background:#EEE;
}

.shopcar-content li img{
	width:25px;
	height:auto;
	margin:0 auto;
}

.shopcar-content p {
	width:80%;
	padding:0 0 3px 0;
	text-align:left;
}

.shopcar-content .qty{
	padding:0 3px 0 3px;
	}

/* --- 固定底部區 --- */
.shopcar-footer {

    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px dashed #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}

/* 按鈕樣式微調 */
.btn-bg-secondary {
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 滑鼠移入顯示整體 */
.shopcar:hover .shopcar-content {
    display: block;
}

/* -- sidemanu for pc -- */
.side-menu{
	position: fixed;
	width: 110px;
	top:40%;
	left:0;
	padding: 0;
	box-sizing: border-box;
	opacity:0.75; 
	display: flex;
	flex-direction: column;
	transform: translateX(0);
	transition: .3s;
	z-index:999999;
	font-size:1rem;
	text-align:center;
	background:#111;
}
label a{
	display: block;
	color: #FFF;
	text-decoration: none;
	font-weight: 550;
	letter-spacing: 2px;
	margin:5px 0;
	background:#e4002b;
	padding: 8px 3px ;
}

label ul.area2 li{ 
	margin:0 0 5px 0;
	color: #FFF;
}
label ul.area2 li div{ 
	margin:3px 0;
}
label ul.area2 li div a{ 
	letter-spacing: 1px;
	margin:3px 0;
	background:none;
	padding: 1px 0;
	display: inline-block;
	font-size:.9rem;
	font-weight: 450;
}

label ul.area2 li div a:hover{ 
	
}

label ul.area2 li div span{ 
	display:block;
	margin:5px 0;
}
label ul.area2 hr {
  display: block;
  margin-before: 0.5em;
  margin-after: 0.5em;
  margin-start: auto;
  margin-end: auto;
  border-style: inset;
  border-width: 1px;
}


.title{
	width:100%;
	background:url(images/bg.png) center center;
	text-align:center;
}

.title .title_pc{
	width:1200px;
}

.title .title_m {
	display:none;
}

	nav.menu {
		width:100%;
		height:40px;
		margin:20px auto 20px auto;
	}
	
	.menu-list {
	    width: 850px;
			height:auto;
			overflow:hidden;
	    padding: 0;
	    margin: 0 auto; 
	    display: flex; 
	    justify-content: space-between;
	    align-items: center;
	}
	
	.menu-list li{
			padding:10px 20px;
	}
	
	
	
article{
	width:100%;
	margin:0 auto;
	text-align:center;	
}

section{
	width:100%;
	height:auto;	
	margin:0 auto;
	overflow:hidden;
	text-align:center;
	}
	
section div{
width:1100px;
	height:auto;	
	overflow:hidden;
	margin:0 auto;
}	
	
.shadow{
    font-size:1.925rem;
    font-weight:900;
	text-shadow: -1px -1px 0 #FFF,
              1px -1px 0 #FFF,
              -1px 1px 0 #FFF,
              1px 1px 0 #FFF;
     color:#b8364e;
	}	
	
section div.product {
	background:#FFF;
	box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
	border-radius: 10px;
  padding:10px 0 0 0;
  height:auto;
  overflow:hidden;
  text-align:center;
	margin:20px auto 30px auto;
}

.product h1 {
	display:inline-block;
	font-size:1.35rem;
	font-weight:bold;
	margin:10px auto ;
	LETTER-SPACING:3px;
	color:#FFF;
	padding:5px 15px; 
	text-align:center;
	background:#ea6283;
}

h2 {
	font-size:1.1rem;
	font-weight:550;
	margin:10px auto ;
	LETTER-SPACING:2px;
	color:#111;
	padding:5px 15px; 
	text-align:center;
}

.product-item {
    display: flex;
    flex-direction: column; /* 讓子元素垂直排列 */
    align-items: center; /* 置中對齊 */
    gap: 10px; /* 設定間距 */
    padding: 10px 5px;
		margin: 5px auto; 
}

.product-list{
	margin:0 auto;
}

.product-list.books{
	width:60%;
}

.product-list.books .product-item {
		float:left;
		width:50%;
}


.product-list.funhouse .product-item {
		float:left;
		width:20%;
}


.product-image  {
	width:auto;
	height:195px;
	margin:0 auto;
	border: 1px solid #f0f0f0;
}

.product-image a img {
	width:100%;
	height:195px;
	object-fit:contain;
	text-align:center;
}

.product-title {	
	width:85%;
	overflow:hidden;
	font-weight: 450;   
	height:45px;
  align-content: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	margin:5px auto 5px auto;
	line-height:1.5;
}

.product-price {
		width:85%;
		height:auto;
	overflow:hidden;
		margin:0 auto 0 auto  ;
		line-height:1.5;
}

.product-price .price{
		padding:12px 0 8px 0;
		text-decoration: line-through;
}
.product-button {
    /* display: flex; 讓兩個按鈕排成同一行 */
    gap: 15px; /* 按鈕之間的間距 */
    margin:0 auto 10px auto;
    text-align:center;
}

.product-button a{
		padding:8px 10px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    flex: 1;
    transition: 0.3s;
    cursor: pointer;
    margin:0 3px;
		font-size: 0.875rem;
}

.product-buttons a:hover{
  text-decoration: none;
}
	
button {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  background-color: #D25353;
  border: 1px solid #d32f2f;
  color: #FFF;
	border-radius: 5px;
}
	
	
/*FOOTER*/

#TOP{
	width:40px;
	height:40px;
	border-radius:10px;
	position:fixed; /*固定位置定位*/
  bottom:100px; 
  right:10px;
	text-align:center;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
	opacity: 0.65;
	transition: opacity 0.5s ease;
 	z-index: 9;
 	display: none; 
}	

footer {
	padding: 5px 15px ;
	text-align: center;
	letter-spacing: 0.065rem;
}


@media screen and ( max-width: 768px ){
.title .title_pc{
	display:none;
}

.title .title_m {
	display:block;
	width:100%;
}

img.logo{
	margin-left:5px;
}

.side-menu{
display:none;
}

	nav.menu {
		height:auto;
		margin:5px auto 5px auto;
	}
	
	.menu-list {
	    width: 98%;

	}
	.title-3{
		font-size:1rem;
	}
	

section{
	width:100%;
	height:auto;	
	margin:0 auto;
	overflow:hidden;
	text-align:center;
	}
	
section div{
	width:98%;
	height:auto;	
	overflow:hidden;
	margin:0 auto;
}	
	


.product-list.books{
	width:100%;
}

.product-list.books .product-item {
		float:left;
		width:50%;
}


.product-list.funhouse .product-item {
		float:left;
		width:50%;
}



/*FOOTER*/

 footer BR{
	display:none;
}

	}