﻿@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

@import url(slick-theme.css);
@import url(slick.css);

/* ---reset.css--- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcAption, fREigure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1; 
}
ol, ul, li{
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ---reset.css--- */
a { text-decoration:none;}

html {	
	-webkit-text-size-adjust:none;
	scroll-behavior: smooth; 
	font-family:'Noto Sans TC', sans-serif;

}

body{
background:url(images/bg.png) ;
background-size:cover;
}


 	@media screen and ( max-width: 768px ){
		*{
			box-sizing:border-box; /* 讓 padding 與 width 解除關係 */
		}
		html,body{
			-webkit-text-size-adjust:none; /* iPhone 旋轉後 文字不要放大 */
		}
	}

/* --電腦版型------------------------------------- */


#WRAPPER{
	width:100%; 
	min-width:1100px; 
	margin:0 auto; 
	background:url(images/ribbons.png) no-repeat;
	background-position: top center;
}

header{
	clear:both;
	width:100%;
	margin:0 auto;
	background-color:#727171;
	padding:5px 0;
	}	

header img{
	padding-left:15px;
	}	

	@media screen and ( max-width: 768px ){
	#WRAPPER{ min-width:100%;}
	header img{
	width:80%;
	padding-left:5px;
	}	
}
	
article{
	width:100%;
	margin:0 auto;
	}

.title{
	width:1200px;
	margin:15px auto;
	text-align:center;
	}	
	
.title_m{
	display:none;
	}

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

.title{
		display:none;
	}		

	.title_m{
		display:block;
		}

	.title_m img{
		width:100%;
		}


	}



section{
  width: 1200px;
 	height:auto;
	overflow:hidden;
  margin:0 auto 0 auto;
  text-align:center;
	}	

section div.product {
	margin:50px auto;

}

.product .icon{
	height:80px;
	position: absolute;
	margin-left:-70px;
	margin-top:-10px;
}

.product h1 {
	display:inline-block;
	font-size:2.15rem;
	font-weight:bold;
	margin:10px auto ;
	LETTER-SPACING:3px;
	color:#FFF;
	background:#e50061;
	border-radius: 20px;
	padding:5px 15px; 
	text-align:center;
}


.product-list {
	width:100%;
			list-style: none;
		padding: 0;
		display: block; /* 預設區塊模式 */
		grid-template-columns: repeat(4, 1fr); /* 固定 3 欄 */
  	gap: 15px; /* 間距 */
  	margin-top:20px;
}



.product-item {
    display: flex;
    flex-direction: column; /* 讓子元素垂直排列 */
    align-items: center; /* 置中對齊 */
    gap: 15px; /* 設定間距 */
    padding: 10px 0;
		margin:5px 10px ; 
  transition: all 0.3s;
    background:rgba(242,242,242,0.65);
    border-radius: 20px;

}

.product-image  {
	width:100%;
	height:200px;
	margin:0 auto;
	text-align:center;
	object-fit:contain;
}

.product-image a img {
	width:100%;
	height:200px;
	object-fit:contain;
	text-align:center;
}


.product-title {	
	overflow:hidden;
	margin:0 auto;
	font-size: 1.2rem;
	font-weight: 500;   
	height:60px;
  align-content: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	line-height:1.3;
}

.product-title a{	
	color:#333;
}

.product-price {
    font-size:1rem;
}
.highlight{
	color:#e50061;
		font-size:1.725rem;
		font-weight:700;
		text-shadow: -2px -2px 0 #FFF,
              2px -2px 0 #FFF,
              -2px 2px 0 #FFF,
              2px 2px 0 #FFF;

}
	
.product-button button {
    padding: 8px 10px;
    background: #d32f2f;
    color: #FFF;
    border: 1px solid #d32f2f;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    margin:15px 3px 0px 3px;
}

.product-button button:hover {
    background: #FFF;
    color:#d32f2f;
}

footer{
	clear:both;
	width:100%;
	margin:0 auto;
	background:#4B3100;
	color:#FFF;
	padding:8px 0;
	text-align:center;
	font-size:0.85rem;
	line-height:1.5;
}


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

section{
  width: 100%;
  padding: 0 5px 10px 5px;
  margin:0 auto 10px auto;
	}	
	
section div.product {
	margin:30px auto;

}

.product .icon{
	height:60px;
	margin-left:-50px;
}

.product h1 {
	font-size:1.65rem;
}


.product-list {
  	margin-top:10px;
}



.product-item {
    padding: 5px 0;
}

.product-title {	
	font-size: 1rem;
	height:45px;
}


.product-price {
    font-size:1rem;
    line-height:1.5;
}

.highlight{
		font-size:1.25rem;
}
	
.product-button button {
    margin:10px 3px 0px 3px;
}

.product-button button:hover {
    background: #FFF;
    color:#d32f2f;
}
	
footer{
	font-size:0.75rem;
	line-height:1.5;
}

footer span{
	display:block;
}


}

  @keyframes scaleDraw {  /*定義關鍵幀、scaleDrew是需要繫結到選擇器的關鍵幀名稱*/
            0%{
                transform: scale(1);  /*開始為原始大小*/
            }
            25%{
                transform: scale(1.2); /*放大1.1倍*/
            }
            50%{
                transform: scale(1);
            }
            75%{
                transform: scale(1.2);
            }
        }
        
    .ballon{
            width: 593px;
            height:258px;
            margin-top:90px;
            margin-left:300px;
            position: absolute;
            z-index:9;
            background: url("images/title.png");
            background-size: 593px 258px;
            -webkit-animation-name: scaleDraw; /*關鍵幀名稱*/
            -webkit-animation-timing-function: ease-in-out; /*動畫的速度曲線*/
            -webkit-animation-iteration-count: infinite;  /*動畫播放的次數*/
            -webkit-animation-duration: 5s; /*動畫所花費的時間*/
        }        
        

/* 球目標區塊 */
.ball-target {
 position: absolute;
  top: 300px;
  margin-left: 550px; /* 用 left 控制位置 */
  width: 124px;
  height: 123px;
}

/* 球圖片樣式 */
.rolling-ball {
  position: absolute;
  margin-left:-750px; /* 一開始在畫面左邊外 */
  top: 300px;
  width: 124px;
  height: 123px;
  animation: rollIn 1s ease-out forwards;
  
}

/* 球滾動動畫 */
@keyframes rollIn {
  0% {
    margin-left: -150px;
    transform: rotate(0deg);
  }
  100% {
    margin-left: 550px;
    transform: rotate(1080deg);
  }
}

	
/* -- sidemanu for pc -- */
.side-menu{
	position: fixed;
	width: 120px;
	top:15%;
	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:1.05rem;
	text-align:center;
}
label a{
	display: block;
	color: #FFF;
	text-decoration: none;
	font-weight: 550;
	letter-spacing: 2px;
	margin:15px 0;
	background:#e50061;
	padding: 8px ;
}

label ul.area2 li{ 
	margin:5px 0;
}
label ul.area2 li:nth-last-child(1){ 
}



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

	
/* -- sidemanu for pc -- */
.side-menu{
	width: 60px;
	top:10%;
	right:0;
	padding:3px;
	font-size:0.955rem;
}

}


#car{ /* 購物車 */
	width:145px;
  position:fixed;
  z-index:999999;
}

#car a{ /* 購物車 */
width:25px;
  height:auto;
	margin:0 auto;
	border-radius: 15px;
	background: #ff4f81;
  color:#FFF;
  font-size:1.15rem;
  text-align:center;
  padding:5px 3px;
  position:fixed;
	display:inline-block;
  top:42px;
	right:5px;
	box-shadow: 0 5px 15px #193047;
  border:1px solid #EEE;
  font-weight:800;
  line-height:1.2;
}


iframe{ /* 購物車 */
width:140px;
  position:fixed;
  right:40px;
  top:42px;
  height:180px;
  overflow:hidden;
}  

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

	#car{ /* 購物車 */
		width:auto;
	}
	
	#car a{ /* 購物車 */
	width:35px;
	  height:auto;
		margin:0 auto;
		border-radius: 5px;
	  font-size:1.15rem;
	  top:80%;
	  line-height:1.5;
	}

	iframe{
	display:none;
	}
}

