﻿@charset "UTF-8";

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

/* 基本 */
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: "Noto Sans TC", sans-serif;
  color:#111;
	background:#bbe2ed url(images/bg.png) ;
	background-size:cover;
	background-attachment: fixed;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

#WRAPPER{
	width:100%; 
	min-width:1100px; 
	margin:0 auto; 
}

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

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

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

.title_m{
	display:none;
	}
	
@keyframes blinkSoft {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

.blink-soft{
  animation: blinkSoft 2s ease-in-out infinite;
}


/* 右側分類圓鈕（像線稿右邊三顆） */
.category-float{
  display:flex;
  flex-direction:column;
  gap:12px;
  
	position: fixed;
  right: 5px;
  top: 40%;
  z-index: 99;
}
.cat-btn{
  width:62px;
  height:62px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:900;
  border:1px solid #FFF;
  line-height:1.05;
  font-size:14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08); /* 線稿說的「發光」感 */
}
.cat-btn--yellow{ background:#f4b400; color:#FFF; }
.cat-btn--red{ background:#e53935; color:#fff; }
.cat-btn--blue{ background:#3f6fb8; color:#fff; }

/* 區塊標題（橢圓） */

.section{
	width:1200px;
	margin:0 auto 50px auto;
  padding:0;
}

.section-title{
	width:100%;
  text-align:center;
  margin:0 auto 25px auto;
  font-size:1.85rem;
  font-weight:900;
	letter-spacing: 3px;
}
.glow-pill{
  display:inline-block;
  padding:12px 42px;
  background:rgba(239,125,59,.6);
  border-radius:1px;
  color:#FFF;
}


/* 商品格：4 欄（像線稿） */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
}

.item-card {
  width: 100%;
  height: auto;
  ovrflow:hidden;
  background:rgba(255,255,255,.65);
  border-radius: 10px;
  padding: 16px 16px 14px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow:
    0 18px 30px rgba(0,0,0,.4),
    0 0 20px rgba(255,255,255,.6) inset;
  position: relative;
  transition: .2s;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #2a2a2a;
}
.item-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 26px 40px rgba(0,0,0,.6),
    0 0 30px rgba(255,255,255,.9) inset;
}

/* 商品圖片區 */
.item-thumb {
  width: 100%;
  height: auto;
  ovrflow:hidden;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin:0 auto;
}
.item-thumb img {
  width: auto;
  height: 175px;
  text-align: center;
  margin:0 auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.05);

}

/* 商品標題 */
.item-name {
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 2.8em;

  color: #1f1a2f;
	text-shadow: -1px -1px 0 #FFF,
              1px -1px 0 #FFF,
              -1px 1px 0 #FFF,
              1px 1px 0 #FFF;
}

/* 價格區 */
.item-price {
  font-size: .8rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 10px;
}
.item-price .strike {
  color: #666;
  text-decoration: line-through;
  margin-right: .3em;
}
.item-price .sale {
  color: #f50537;
  font-weight: 700;
  font-size: 1.02rem;
	text-shadow: -1px -1px 0 #FFF,
              1px -1px 0 #FFF,
              -1px 1px 0 #FFF,
              1px 1px 0 #FFF;
}
.item-price .saleprice {
  color: #f50537;
  font-size: 1.5rem;
}

/* 購物車按鈕 */
.item-action {
  text-align: right;
}
.buy-btn {
  display: inline-block;
  background: linear-gradient(#2c1d76,#1a0f4a);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: .15s;
}
.buy-btn:hover {
  background: linear-gradient(#4a2adf,#2a177e);
}




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




/* RWD：平板/手機 */

@media (max-width: 768px){
  
.hero{
	width:100%;
	height:auto;
}

.title{
		display:none;
	}		

	.title_m{
		display:block;
		}

	.title_m img{
		width:100%;
		}

.section{
	width:96%;
  padding:8px 0 ;
		}
.section-title{
  margin:10px 0 ;
  font-size:1.5rem;
  padding:8px 15px ;
}
  .product-grid{ 
  gap:10px;
  grid-template-columns: repeat(2, 1fr); 
  }
.item-price .sale {
	display:block;
}
}


/* 浮動購物車 */
#car {
	width: 145px;
	position: fixed;
	z-index: 999999;
}
#car a {
	position: fixed;
	top: 42px;
	right: 5px;

	display: inline-block;
	width: 25px;
	padding: 5px 3px;

	background: #ff4f81;
	border: 1px solid #EEE;
	border-radius: 15px;
	box-shadow: 0 5px 15px #193047;

	color: #FFF;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

/* cart iframe (桌機版右上角的小購物車總覽) */
iframe {
	width: 140px;
	position: fixed;
	right: 40px;
	top: 42px;
	height: 180px;
	overflow: hidden;
	border: 0;
}

/* cart RWD: 手機時只留粉紅按鈕，隱藏右上iframe */
@media screen and (max-width: 768px) {
	#car {
		width: auto;
	}
	#car a {
		width: 35px;
		border-radius: 5px;
		top: 80%;
		line-height: 1.5;
	}
	iframe {
		display: none;
	}
}