@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Pacifico&family=Lora:wght@400;500;600;700&display=swap');

:root {
	--color-offwhite: #f5f1e8;
	--color-text-primary: #333333;
	--color-text-secondary: #666666;
	--color-text-accent: #8B7355;
	--color-text-warm: #8B4513;
	
	/* 寵物用品電商字體系列 */
	--font-heading: 'Quicksand', sans-serif;
	--font-body: 'Poppins', sans-serif;
	--font-accent: 'Pacifico', cursive;
	--font-narrative: 'Lora', serif;
}
body {
	background-color: var(--color-offwhite);
	padding-bottom: 50px;
	color: var(--color-text-primary);
	font-family: var(--font-body);
}
.menu-button label {
	display: none;
}

/*.grid [class*="col-xs-"] {
	/* border: 1px solid #999; */


@media( max-width:810px ) {
.container {
	padding-left: 1em;
	padding-right: 1em;
}	
.navbar h1 {
	padding-left: 0.5em;
	font-size: 0.9em;
}
.navbar .container.display-flex {
	flex-wrap: wrap;
	position: relative;
}
.navbar .nav {
	width: 100%;
	display: none !important;
	order: 3;
}
.navbar .nav-flex ul {
	display: block !important;
	flex-direction: column !important;
}
.navbar .nav li {
	line-height: 1.5em;
}
.menu-button {
	order: 2;
}
.menu-button label {
	display: block !important;
	padding: 0 1em;
	font-size: 30px;
	cursor: pointer;
}
/* 只針對 navbar 的 flex-stretch 設定 order，不影響產品卡片 */
.navbar .flex-stretch {
	order: 1;
}
#menu:checked+.navbar .nav {
	display: block !important;
}
}

.figure.product {
	border-radius: 0.5em;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	overflow: hidden;
}

.figure.product {
	display: flex !important;
	flex-direction: column !important;
}

/* 強制統一產品圖片容器大小 - 覆蓋 styleguide.css 的 .flex-stretch { flex: 1 1 auto; } */
a.col-xs-12.col-md-4 figure.figure.product.display-flex.flex-column > .flex-stretch,
.figure.product > .flex-stretch,
a figure.figure.product .flex-stretch,
figure.product .flex-stretch,
figure.product.display-flex.flex-column .flex-stretch {
	/* 覆蓋 styleguide.css 的 flex: 1 1 auto */
	flex: 0 0 300px !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	flex-basis: 300px !important;
	
	/* 固定高度，不隨內容調整 */
	height: 300px !important;
	min-height: 300px !important;
	max-height: 300px !important;
	
	/* 其他必要屬性 */
	overflow: hidden !important;
	position: relative !important;
	width: 100% !important;
	box-sizing: border-box !important;
	display: block !important;
	/* 防止容器根據內容自動調整 */
	align-self: stretch !important;
}

/* 強制統一產品圖片大小 - 覆蓋 styleguide.css 的 .figure img { width: 100%; vertical-align: text-bottom; } */
a.col-xs-12.col-md-4 figure.figure.product.display-flex.flex-column > .flex-stretch > img,
a figure.figure.product .flex-stretch img,
.figure.product > .flex-stretch > img,
.figure.product .flex-stretch img,
figure.product .flex-stretch img,
figure.product.display-flex.flex-column .flex-stretch img,
.product.figure img,
figure.product img {
	/* 覆蓋 styleguide.css 的 width: 100% 和 vertical-align: text-bottom */
	width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
    vertical-align: top !important;
    
    /* 圖片填滿容器 */
    object-fit: cover !important;
    object-position: center !important;
    
    /* 定位和顯示 */
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* 確保圖片不會影響容器大小 */
    max-width: 100% !important;
    max-height: 100% !important;
}

/* 調整 category 按鈕區域間距 */
.card.soft .display-flex.flex-stretch {
	gap: 0.5em;
}

/* 手機版本：category 按鈕區域換行 */
@media( max-width:400px ) {
	.card.soft .display-flex.flex-wrap {
		flex-direction: column;
		gap: 0.5em;
	}
	.card.soft .display-flex.flex-stretch {
		flex-wrap: wrap !important;
		flex: 1 1 auto !important;
		width: 100% !important;
		min-width: 0 !important;
		gap: 0.5em;
	}
	.card.soft .display-flex.flex-stretch .flex-none {
		flex: 0 0 auto !important;
	}
}

.productlist a{
    text-decoration: none;
    font-weight: initial;
}

.product.figure:hover {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}
.productlist a,
.product-list a {
	text-decoration: none;
	font-weight: initial;
}



.product-overlay {
	position: relative;
	overflow: hidden;
}
.product-overlay figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0;
}
.product-overlay:hover figcaption {
	opacity: 1;
}
.product-overlay .caption-body {
	background-color: #fff;
	border-radius: 0.5em;
	padding: 1em;
	transform: translateY(2em);
	transition: all 0.3s;
}
.product-overlay:hover .caption-body {
	transform: translateY(0);
}
.product-overlay img {
	transform: scale(1,1);
	transition: all 0.3s;
}
.product-overlay:hover img {
	transform: scale(1.4,1.4);
}

@media(max-width: 600px) {
.product-overlay figcaption {
	position: relative;
	display: block;
	top: initial;
	left: initial;
	width: 100%;
	height: initial;
	opacity: 1;
	background-color: initial;
}
.product-overlay .caption-body {
	transform: none;
	padding: 0;
}
}

.favorite label {
	transition: all 0.3s;
	display: inline-block;
	position: relative;
	transform: scale(1,1);
	color: var(--color-neutral-medium);
}
.favorite input:checked + label {
	color: #f00;
	transform: scale(1.5,1.5);
}


.nav-toggle label {
	display: none;
}

.images-main img {
	width: 100%;
	height: 40vh;
	object-fit: contain;
}
.images-thumbs img {
	width: 8em;
	height: 6em;
	object-fit: contain;
}


span.badge:not(:empty)::after {
	content: ')';
}
span.badge:not(:empty)::before {
	content: '(';
}



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

}


@media only screen and (min-width: 250px) and (max-width: 767px) {
	
}

/* 寵物用品電商字體顏色樣式 */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-primary);
	font-family: var(--font-heading);
}

.card h2 {
	color: var(--color-text-primary);
	font-family: var(--font-heading);
}

.article-body p {
	color: var(--color-text-primary);
	font-family: var(--font-narrative);
}

.grid [class*="col-xs-"] {
	color: var(--color-text-primary);
}

.form-input {
	color: var(--color-text-primary);
}

.form-select select {
	color: var(--color-text-primary);
}

.hotdog input::placeholder {
	color: var(--color-text-secondary);
}

/* 修復繼承顏色問題 */
a {
	color: var(--color-text-primary);
}

.hotdog.light {
	color: var(--color-text-primary);
}

/* 強調文字顏色類別 */
.text-accent {
	color: var(--color-text-accent);
}

.text-warm {
	color: var(--color-text-warm);
}

/* Product卡片樣式 - 寵物用品電商概念 */
.figure.product {
	background-color: #faf8f3;
	/* border: 2px solid #e8dcc0; */
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(139, 115, 85, 0.1);
	transition: all 0.3s ease;
}

.figure.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(139, 115, 85, 0.15);
	border-color: var(--color-text-accent);
}

.figure.product figcaption {
	background-color: #f5f1e8;
	border-top: 1px solid #e8dcc0;
	color: var(--color-text-primary);
	font-family: var(--font-body);
}

.figure.product figcaption div:first-child {
	font-weight: 600;
	color: var(--color-text-accent);
}

.figure.product figcaption div:last-child {
	color: var(--color-text-warm);
	font-weight: 500;
}

/* Basic Figure卡片樣式 - 寵物用品電商概念 */
.figure {
	background-color: #faf8f3 !important;
	/* border: 2px solid #e8dcc0 !important; */
	border-radius: 12px !important;
	box-shadow: 0 4px 12px rgba(139, 115, 85, 0.1) !important;
	transition: all 0.3s ease;
	overflow: hidden;
}

.figure:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(139, 115, 85, 0.12);
	border-color: var(--color-text-accent);
}

.figure figcaption {
	background-color: #f5f1e8 !important;
	border-top: 1px solid #e8dcc0 !important;
	color: var(--color-text-accent) !important;
	font-family: var(--font-body) !important;
	font-weight: 500;
}

/* Figure Grid卡片樣式 */
.figure img:not(.figure.product img) {
	transition: transform 0.3s ease;
}

.figure:hover img:not(.figure.product img) {
	transform: scale(1.02);
}

/* 導航hover效果 - 兩個不同顏色 */
.nav a:hover,
.nav .active a:hover {
	background-color: #8B7355 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px) !important;
	transition: all 0.3s ease !important;
}

.nav-material a:hover,
.nav-material .active a:hover {
	background-color: #D4C4A8 !important;
	color: #333333 !important;
	transform: translateY(-1px) !important;
	transition: all 0.3s ease !important;
}

