﻿@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: linear-gradient(to bottom,  rgb(217,239,252) 0%,rgb(246,251,254) 51%,rgb(255,255,255) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

/* 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;
}


.title{
	width:100%;
	background:url(images/bg.png) center center;
	text-align:center;
	padding: 50px 30px;	
}

.title .title_pc{
	width:1000px;
	height:auto;
}

.title .title_m {
	display:none;
}
	
.moblie{
	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;
	}
	
/* 外層整條 nav 是 sticky */
.top-nav {
	background: #4c5d1f;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
	position: sticky;
	top: 0;
	z-index: 1000;
}
/* 這層用來啟用手機版橫向捲動 */
.top-nav-scroll {
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}


/* 內層按鈕容器 */
.top-nav ol{
	margin:0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 5px;
	padding: 12px 10px;
	min-width: max-content;
}

.top-nav li{
	height:auto;
	margin:0 8px;
	padding:10px 0;
  line-height:1.3;  border-radius: 10px;
	font-weight:bold;
	font-size:1.2rem;
	color:#FFF;
}	

@media (max-width: 768px) {
	
.title {
	width:100%;
	height:auto;
	margin:0 auto;
	text-align:center;
	padding:0;
	}	
.moblie{

	display:block;
}
	.top-nav-inner {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 12px;
		min-width: max-content;
	}

/* 這層用來啟用手機版橫向捲動 */
.top-nav-scroll {
	max-width: 100%;
}
	.nav-item {
		min-width: 180px;
		text-align: left;
		line-height: 1.4;
		font-size: 1rem;
	}

	.nav-item .sub {
		white-space: normal;
		font-size: .7rem;
		margin-top: 4px;
	}

	.top-nav-scroll::-webkit-scrollbar {
		height: 4px;
	}
	.top-nav-scroll::-webkit-scrollbar-thumb {
		background: #c6c9ff;
		border-radius: 999px;
	}
	.top-nav-scroll::-webkit-scrollbar-track {
		background: transparent;
	}
}


	
	
article{
	width:100%;
	margin:0 auto;
	text-align:center;	
	background: radial-gradient(#b6d2e0 2px, transparent 2px) 15px 15px,
            radial-gradient(#cce4f0 4px, transparent 4px) 0 0,
            #d3edfa ;
background-size: 36px 36px, 36px 36px;
}

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; 
		float:left;
		width:22%;
}

.product-list{
	margin:0 auto;
}


.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:48px;
  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.3;
}

.product-title a{	
	font-size:.9rem;
	color:#333;
}

.product-price {
		width:85%;
		height:auto;
	overflow:hidden;
		margin:0 auto 0 auto  ;
		line-height:1.5;
		font-size:.9rem;
		color:#111;
		font-weight:normal;
		height:50px;
}

.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;
}

/* 分頁導覽容器 */
.pagination {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* 頁碼列表清單 */
.pagination__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; /* 讓圓角效果套用到子元素 */
}

.pagination__item {
    border-right: 1px solid #e0e0e0;
}

.pagination__item:last-child {
    border-right: none;
}

/* 頁碼連結通用樣式 */
.pagination__link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #4a4a4a;
    background-color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

/* 滑鼠經過效果 */
.pagination__link:hover {
    background-color: #f8f9fa;
    color: #ff6600; /* 這裡建議用跟你網站主色調一致的顏色 */
}

/* 當前頁面 (Active) 樣式 */
.pagination__link.is-active {
    background-color: #ff6600; /* 主色調背景 */
    color: #ffffff !important;   /* 白色文字 */
    cursor: default;
    font-weight: bold;
}

/* 分頁資訊文字 (第 X 頁 / 共 X 頁) */
.page-info {
    color: #888888;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* 手機版微調 */
@media (max-width: 480px) {
    .pagination__link {
        padding: 8px 12px;
        font-size: 14px;
    }
}
	
/*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-item {
		width:46%;
}



/*FOOTER*/

 footer BR{
	display:none;
}

	}