/**
 * SoulBalloon WooCommerce 樣式
 * 設計語言：仿 balloon-kitchen（白底 #fff / 深墨 #111 / 品牌紅粉 #d70466）
 * 手機優先電商 UI。
 */

/* =========================================================
   容器與整體
   ========================================================= */
.site-main {
	padding: 24px 0 64px;
}

.sb-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* =========================================================
   Airbnb 風格設計 token
   ========================================================= */
:root {
	--brand: #d70466;
	--brand-dark: #a01350;
	--tech: #0d99ff;
	--ink: #222;
	--muted: #717171;
	--line: #ddd;
	--bg-light: #f7f7f7;
	--radius: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--shadow: 0 1px 3px rgba(0,0,0,0.06);
	--shadow-lg: 0 6px 20px rgba(0,0,0,0.08);
}

/* =========================================================
   標題區
   ========================================================= */
.sb-section__title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 20px;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.sb-section__title-en {
	font-size: 0.8rem;
	font-weight: 700;
	color: #d70466;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* =========================================================
   主視覺 Hero
   ========================================================= */
.sb-hero {
	position: relative;
	background: linear-gradient(135deg, #fff5f7 0%, #ffe0e9 50%, #ffc2d3 100%);
	margin: 0 auto 48px;
	overflow: hidden;
}

.sb-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.sb-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 1;
}

.sb-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px 0;
	max-width: 560px;
}

.sb-hero__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	color: #111;
	margin: 0 0 16px;
}

.sb-hero__subtitle {
	font-size: 1.05rem;
	color: #686868;
	margin: 0 0 28px;
}

.sb-hero__cta {
	display: inline-block;
	background: #d70466;
	color: #fff;
	padding: 14px 32px;
	font-weight: 700;
	text-decoration: none;
	width: max-content;
	transition: background 0.2s ease;
}

.sb-hero__cta:hover {
	background: #a01350;
}

/* =========================================================
   快速選購（導購三軸：場合/顏色/預算）
   ========================================================= */
.sb-quick-shop {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin-bottom: 8px;
}

.sb-quick-shop__label {
	position: absolute;
	left: -9999px;
}

.sb-quick-shop select {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 0;
	padding: 14px 12px;
	background: #fff;
	font-size: 0.95rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.sb-quick-shop select:focus {
	border-color: #d70466;
	outline: none;
}

.sb-quick-shop .button {
	width: 100%;
	border-radius: 0;
	padding: 14px;
	background: #111;
	color: #fff;
	border: none;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sb-quick-shop .button:hover {
	background: #d70466;
}

/* =========================================================
   商品卡（分類頁／首頁）
   ========================================================= */
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.products li.product {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
}

ul.products li.product:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

ul.products li.product img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	margin: 0;
	border-radius: 12px 12px 0 0;
}

ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	padding: 16px 16px 4px;
	margin: 0;
	color: #222;
}

ul.products li.product .price {
	color: #d70466;
	font-weight: 700;
	font-size: 1.1rem;
	padding: 0 16px 16px;
}

ul.products li.product .price del {
	color: #999;
	opacity: 0.7;
	font-size: 0.9rem;
}

ul.products li.product .button {
	background: #d70466;
	color: #fff;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 600;
	font-size: 0.85rem;
	margin: 0 16px 16px;
	transition: background 0.2s ease;
}

ul.products li.product .button:hover {
	background: #a01350;
}

ul.products li.product img {
	margin-bottom: 0;
}

/* 標籤 */
.sb-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	color: #fff;
}

.sb-badge--new {
	background: #d70466;
}

.sb-badge--custom {
	background: #111;
}

.sb-badge--soldout {
	background: #d33636;
}

.sb-badge--rush {
	background: #2f9e63;
}

/* =========================================================
   商品詳情頁
   ========================================================= */
.single-product div.product .summary {
	padding-left: 0;
}

.single-product .woocommerce-product-gallery {
	overflow: hidden;
}

.sb-service,
.sbb-customization,
.sbb-schedule {
	background: #fafafa;
	border: 1px solid #ddd;
	padding: 16px;
	margin: 16px 0;
}

.sb-service__title,
.sbb-customization__title,
.sbb-schedule__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.sb-service__options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.sb-service__option {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid #ddd;
	background: #fff;
	padding: 10px 12px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sb-service__option:has(input:checked) {
	border-color: #d70466;
	background: #fff5f7;
}

.sb-service__label {
	font-weight: 600;
}

.sb-service__price {
	font-size: 0.85rem;
	color: #686868;
}

.sbb-customization__field {
	margin-bottom: 14px;
}

.sbb-customization__label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.sbb-customization__hint {
	color: #686868;
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
}

.sbb-custom-input,
.sbb-custom-textarea {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 0;
	padding: 10px 12px;
	font-size: 1rem;
	background: #fff;
}

.sbb-custom-input:focus,
.sbb-custom-textarea:focus {
	border-color: #d70466;
	outline: none;
	box-shadow: none;
}

.sbb-customization__confirm {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9rem;
	margin-top: 8px;
}

.sbb-schedule__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}

.sbb-schedule__option {
	display: block;
	text-align: center;
}

.sbb-schedule__option input {
	display: none;
}

.sbb-schedule__option span {
	display: block;
	border: 1px solid #ddd;
	background: #fff;
	padding: 8px 4px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sbb-schedule__option input:checked + span {
	border-color: #d70466;
	background: #fff5f7;
	color: #a01350;
	font-weight: 700;
}

/* =========================================================
   報價表單
   ========================================================= */
.sbb-quote-form {
	background: #fff;
	border: 1px solid #ddd;
	padding: 32px;
}

.sbb-quote-form fieldset {
	border: none;
	margin: 0 0 24px;
	padding: 0;
}

.sbb-quote-form legend {
	font-weight: 700;
	margin-bottom: 12px;
	padding: 0;
	border-bottom: 2px solid #111;
	width: 100%;
	padding-bottom: 8px;
}

.sbb-quote-form input,
.sbb-quote-form select,
.sbb-quote-form textarea {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 0;
	padding: 10px 12px;
	margin-bottom: 10px;
	font-size: 1rem;
	background: #fff;
}

.sbb-quote-form input:focus,
.sbb-quote-form select:focus,
.sbb-quote-form textarea:focus {
	border-color: #d70466;
	outline: none;
}

.sbb-quote-form .button-primary {
	width: 100%;
	padding: 14px;
	font-size: 1.05rem;
	background: #111;
	border-radius: 0;
}

.sbb-quote-form .button-primary:hover {
	background: #d70466;
}

/* =========================================================
   手機：商品頁底部固定操作條
   ========================================================= */
.sb-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid #ddd;
	box-shadow: 0 -2px 12px rgba(17, 17, 17, 0.06);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	display: none;
	align-items: center;
	gap: 12px;
	z-index: 999;
}

.sb-sticky-bar__add {
	flex: 1;
	background: #d70466;
	color: #fff;
	border: none;
	padding: 12px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.sb-sticky-bar__price {
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.sb-sticky-bar {
		display: flex;
	}
	body {
		padding-bottom: 70px;
	}
}

/* =========================================================
   訂製流程
   ========================================================= */
.sb-process {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	padding: 0;
	margin: 0;
}

.sb-process li {
	background: #fafafa;
	border: 1px solid #ddd;
	padding: 16px 12px;
	text-align: center;
	font-size: 0.9rem;
}

.sb-process__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #d70466;
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	margin-bottom: 8px;
}

/* =========================================================
   場景導購（用途分類網格）
   ========================================================= */
.sb-scene-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}

.sb-scene-card {
	display: block;
	background: #fff;
	border: 1px solid #ddd;
	padding: 20px 16px;
	text-align: center;
	font-weight: 700;
	color: #111;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.sb-scene-card:hover {
	border-color: #d70466;
	color: #d70466;
}

.sb-scene-card__en {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	color: #d70466;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

/* =========================================================
   客戶評價
   ========================================================= */
.sb-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.sb-reviews p {
	background: #fff;
	border: 1px solid #ddd;
	padding: 20px;
	margin: 0;
	font-size: 0.95rem;
}

/* =========================================================
   品牌化頁頭（強制覆蓋 Storefront 預設）
   ========================================================= */
.sb-header {
	background: #fff !important;
	border-bottom: 1px solid #ddd !important;
}

.sb-header * {
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.sb-header a {
	text-decoration: none !important;
	box-shadow: none !important;
}

.sb-header__topbar {
	background: #111 !important;
	color: #fff !important;
	font-size: 0.8rem !important;
	padding: 8px 0 !important;
}

.sb-header__topbar-inner {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 8px 20px !important;
	gap: 12px !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
}

.sb-header__topbar-msg {
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: #fff !important;
}

.sb-header__topbar-contact a {
	color: #fff !important;
	font-weight: 700 !important;
}

.sb-header__topbar-contact a:hover {
	color: #d70466 !important;
}

.sb-header__main {
	border-bottom: 1px solid #ddd !important;
}

.sb-header__inner {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	padding: 16px 20px !important;
	flex-wrap: wrap !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
}

.sb-header__logo a {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	color: #111 !important;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
}

.sb-header__logo-mark {
	font-size: 1.6rem !important;
}

.sb-header__logo-text {
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	color: #111 !important;
}

.sb-header__menu-toggle {
	display: none !important;
	background: none !important;
	border: none !important;
	padding: 8px !important;
	cursor: pointer !important;
}

.sb-header__menu-toggle span {
	display: block !important;
	width: 22px !important;
	height: 2px !important;
	background: #111 !important;
	margin: 5px 0 !important;
}

.sb-header__nav {
	order: 3 !important;
	width: 100% !important;
	margin-top: 8px !important;
}

.sb-header__menu {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 4px !important;
}

.sb-header__menu li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.sb-header__menu a {
	display: block !important;
	padding: 10px 16px !important;
	color: #111 !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
}

.sb-header__menu a:hover,
.sb-header__menu .current-menu-item > a {
	color: #d70466 !important;
}

.sb-header__actions {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	order: 2 !important;
}

.sb-header__icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	color: #111 !important;
}

.sb-header__icon:hover {
	background: #fff5f7 !important;
	color: #d70466 !important;
}

.sb-header__cart-count {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	background: #d70466 !important;
	color: #fff !important;
	font-size: 0.65rem !important;
	font-weight: 700 !important;
	min-width: 18px !important;
	height: 18px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.sb-header__search-toggle {
	background: none !important;
	border: none !important;
	cursor: pointer !important;
}

.sb-header__search-bar {
	display: none !important;
	padding: 12px 0 !important;
	background: #fafafa !important;
}

.sb-header__search-bar.is-open {
	display: block !important;
}

.sb-header__search-bar form {
	max-width: 560px !important;
	margin: 0 auto !important;
}

.sb-header__search-bar .search-field {
	width: 100% !important;
	border: 1px solid #ddd !important;
	padding: 12px 44px 12px 14px !important;
	font-size: 0.95rem !important;
}

.sb-header__search-bar .search-submit {
	position: absolute !important;
	right: 0 !important;
	top: 0 !important;
	height: 100% !important;
	background: #111 !important;
	border: none !important;
	color: #fff !important;
	padding: 0 16px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
}

.sb-catnav {
	background: #fafafa !important;
	border-bottom: 1px solid #ddd !important;
}

.sb-catnav__inner {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	gap: 4px !important;
	padding: 8px 20px !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
}

.sb-catnav__link {
	padding: 6px 14px !important;
	color: #686868 !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
}

.sb-catnav__link:hover {
	color: #d70466 !important;
}

/* =========================================================
   品牌化頁尾
   ========================================================= */
.sb-footer {
	background: #111;
	color: #fff;
	margin-top: 64px;
}

.sb-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 48px 20px 32px;
}

.sb-footer__logo a {
	color: #fff;
	text-decoration: none;
	font-size: 1.2rem;
	font-weight: 800;
}

.sb-footer__desc {
	color: #b5b5b5;
	font-size: 0.9rem;
	line-height: 1.6;
}

.sb-footer__contact a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.sb-footer__contact a:hover {
	color: #d70466;
}

.sb-footer__title {
	color: #fff;
	font-size: 1rem;
	margin: 0 0 12px;
}

.sb-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sb-footer__links li {
	margin-bottom: 8px;
}

.sb-footer__links a,
.sb-footer__links li {
	color: #b5b5b5;
	font-size: 0.9rem;
	text-decoration: none;
}

.sb-footer__links a:hover {
	color: #d70466;
}

.sb-footer__bottom {
	border-top: 1px solid #333;
}

.sb-footer__bottom-inner {
	padding: 16px 20px;
	font-size: 0.8rem;
	color: #888;
}

.sb-footer__bottom p {
	margin: 0;
}

/* =========================================================
   響應式
   ========================================================= */
@media (max-width: 768px) {
	.sb-header__menu-toggle {
		display: block;
	}
	.sb-header__nav {
		display: none;
	}
	.sb-header__nav.is-open {
		display: block;
	}
	.sb-header__menu {
		flex-direction: column;
		align-items: center;
	}
	.sb-header__inner {
		padding: 12px 16px;
	}
	.sb-header__topbar-inner {
		padding: 8px 16px;
	}
	.sb-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 32px 16px 24px;
	}
	.sb-catnav__inner {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding: 8px 16px;
	}
	.sb-catnav__link {
		white-space: nowrap;
	}
}

@media (max-width: 600px) {
	.sb-service__options {
		grid-template-columns: 1fr;
	}
	.sb-hero__content {
		padding: 40px 0;
	}
	ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.sb-quick-shop {
		grid-template-columns: 1fr 1fr;
	}
}
