/* Base */
:root {
  --container: 1200px;
  --container-width: 90%;
  --text: #333;
  --muted-bg: #F6F6F6;
  --muted-text: #777;
  --danger-text: #F00;
  --border: #eaeaea;

  --slider-slogan-text-color: #4C4941;
  /* 輪播圖文字顏色 */
  --primary-color: #A66960;
  --secondary-color: #BFA395;
  --hr-color: rgba(191, 163, 149, 0.5);
  --light-border-color: #C7C6C6;

  --primary-btn-bg: #BFA395;
  --primary-btn-text: #FFF;
  --primary-btn-hover-bg: #BFA395;
  --primary-btn-hover-text: #FFF;

  --danger-btn-bg: #E87F7F;
  --danger-btn-text: #FFF;

  --table-header-bg: #F6F6F6;

  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  --swiper-navigation-sides-offset: 20px;
}

/* 系統通用 */
* {
  box-sizing: border-box
}

body {
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  margin: 0
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  font-weight: 400;
  line-height: 1.9em;
  letter-spacing: 0%;
  text-align: justify;
}

hr {
  border: none;
  height: 1px;
  background: var(--hr-color);
}

.container {
  max-width: var(--container);
  width: var(--container-width);
  margin: 0 auto;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.block {
  display: block
}

.inline-block {
  display: inline-block;
}

.v-center {
  align-items: center;
}

.flex-right {
  justify-content: right;
}

.v-bottom {
  align-items: end;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.bold {
  font-weight: bold;
}

.ms-auto {
  margin-left: auto;
}

.w60 {
  width: 60%
}

.w80 {
  width: 80%
}

.w100 {
  width: 100%;
}

.mt-0 {
  margin-top: 0px !important;
}

.mt-2 {
  margin-top: 8px !important;
}

.mt-4 {
  margin-top: 16px !important;
}

.mt-6 {
  margin-top: 24px !important;
}

.mt-8 {
  margin-top: 32px !important;
}

.mb-0 {
  margin-bottom: 0px !important;
}

.mb-2 {
  margin-bottom: 8px !important;
}

.mb-4 {
  margin-bottom: 16px !important;
}

.mb-6 {
  margin-bottom: 24px !important;
}

.mb-8 {
  margin-bottom: 32px !important;
}

.ms-0 {
  margin-left: 0px !important;
}

.ms-2 {
  margin-left: 8px !important;
}

.ms-4 {
  margin-left: 16px !important;
}

.ms-6 {
  margin-left: 24px !important;
}

.ms-8 {
  margin-left: 32px !important;
}

.me-0 {
  margin-right: 0px !important;
}

.me-2 {
  margin-right: 8px !important;
}

.me-4 {
  margin-right: 16px !important;
}

.me-6 {
  margin-right: 24px !important;
}

.me-8 {
  margin-right: 32px !important;
}

.mx-auto {
  margin: auto;
}

.pt-2 {
  padding-top: 8px !important;
}

.pt-4 {
  padding-top: 16px !important;
}

.pt-6 {
  padding-top: 24px !important;
}

.pt-8 {
  padding-top: 32px !important;
}

.pb-2 {
  padding-bottom: 8px !important;
}

.pb-4 {
  padding-bottom: 16px !important;
}

.pb-6 {
  padding-bottom: 24px !important;
}

.pb-8 {
  padding-bottom: 32px !important;
}

.ps-2 {
  padding-left: 8px !important;
}

.ps-4 {
  padding-left: 16px !important;
}

.ps-6 {
  padding-left: 24px !important;
}

.ps-8 {
  padding-left: 32px !important;
}

.pe-2 {
  padding-right: 8px !important;
}

.pe-4 {
  padding-right: 16px !important;
}

.pe-6 {
  padding-right: 24px !important;
}

.pe-8 {
  padding-right: 32px !important;
}

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

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

.text-xs {
  font-size: 12px;
}

.cpage-full {
  min-height: calc(100vh - 380px);
}

.myselect {
  border-width: 1px;
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 100px;
}

.myselect {
  /* 隱藏原生箭頭 */
  appearance: none;
  -webkit-appearance: none;
  /* Safari */
  -moz-appearance: none;
  /* Firefox */

  /* 基本樣式 */
  padding: .5rem 2.5rem .5rem .75rem;
  /* 右側留空給箭頭 */
  border: 1px solid #ccc;
  border-radius: .5rem;
  background-color: #fff;

  /* 自訂箭頭（使用可跟著字色變的 SVG） */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"><path d="M4.2 6.2 8 10l3.8-3.8-.9-.9L8 8.2 5.1 5.3z"/></svg>');
  background-repeat: no-repeat;

  /* 在這裡精確控制“箭頭 ↔ 邊框”的距離（例：距離右邊 12px） */
  background-position: right 12px center;

  /* 控制箭頭大小 */
  background-size: 16px 16px;

  /* 讓箭頭跟著文字顏色 */
  color: #333;
}

.mybutton {
  display: inline-block;
  font-family: inherit;
  font-size: 100%;
  padding: .5em 1em;
  border: none transparent;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}

.mybutton.outline-btn {
  border: 1px solid;
  padding: 0.8em 2em;
}

.mybutton.outline-btn:hover,
.mybutton.outline-btn.active {
  background-color: black;
  color: #FFF;
}

.mybutton.outline-primary-btn {
  border: 1px solid;
  padding: 0.8em 1em;
}

.mybutton.outline-primary-btn:hover,
.mybutton.outline-primary-btn.active {
  background-color: var(--primary-btn-bg);
  color: #FFF;
}

.mybutton.primary-btn {
  background-color: var(--primary-btn-bg);
  color: var(--primary-btn-text);
}

.mybutton.danger-btn {
  background-color: var(--danger-btn-bg);
  color: var(--danger-btn-text);
}

.mybutton:hover {
  opacity: 0.8
}

.mybutton[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.myhref {
  color: #3D92C9;
  text-decoration: underline;
}

.badge {
  border: 1px solid #CCC;
  padding: 2px 10px;
  display: inline-block;
  background-color: var(--muted-bg);
  border-radius: 6px;
  font-size: 0.8em;
}

.badge.badge-info {
  color: var(--info);
  border: 1px solid color-mix(in oklab, var(--info) 25%, transparent);
}

.badge.badge-danger {
  background-color: color-mix(in oklab, var(--error) 25%, transparent);
  color: var(--error);
  border: 1px solid color-mix(in oklab, var(--error) 25%, transparent);
}

.badge.badge-success {
  background-color: color-mix(in oklab, var(--success) 25%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in oklab, var(--success) 25%, transparent);
}

.stamp-badge {
  --tone: #334155;
  /* default */
  border: 1px solid color-mix(in oklab, var(--tone) 25%, transparent);
  background: color-mix(in oklab, var(--tone) 7%, #ffffff);
  padding: 14px 16px;
  border-radius: 0px;
  display: inline-block;
  border-left: 6px solid color-mix(in oklab, var(--tone) 25%, transparent);
  padding: 6px 12px;
}

h1,
h2,
h3 {
  color: var(--primary-color);
}

.customer-text ul li {
  line-height: 1.9em;
}

/* Header */
.logo img {
  height: 50px;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1001
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px
}

.logo {
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap
}

.menu-wrap {
  display: none
}

.menu {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap
}

.pure-menu-link {
  padding: .45rem .7rem
}

.menu-icon {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.menu-icon.cart {
  background-image: url('/assets/images/icon/cart.svg');
  background-size: 20px;
  transition: all 0.1s;
}

a:hover .menu-icon.cart,
.menu-icon.cart.active {
  background-image: url('/assets/images/icon/cart-hover.svg');
}

.menu-icon.member {
  background-image: url('/assets/images/icon/avatar.svg');
  background-size: 20px;
  transition: all 0.1s;
}

a:hover .menu-icon.member,
.menu-icon.member.active {
  background-image: url('/assets/images/icon/avatar-hover.svg');
}

.pure-menu-active>.pure-menu-link,
.pure-menu-link:focus,
.pure-menu-link:hover,
.pure-menu-link.active {
  background-color: transparent;
  color: var(--primary-color);
  font-weight: bold;
}


/* Header Search */
.header-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  background: #fff;
  margin-left: 10px;
}

.header-search-form input {
  border: none;
  outline: none;
  padding: 4px;
  font-size: 14px;
  width: 150px;
  background: transparent;
}

.header-search-form button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
}

.menu-icon.search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-search-container {
  padding: 16px;
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
}

.mobile-search-container .header-search-form {
  margin-left: 0;
  width: 100%;
}

.mobile-search-container input {
  width: 100%;
  flex: 1;
}

.mobile-search-container button {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

/* 購物車數字 */
span.cart-total-num {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 10px;
  background-color: red;
  color: #fff;
  text-align: center;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
  padding: 0px 11px;
  display: inline-flex;
  justify-content: center;
}

#id-mobile-btns {
  gap: 10px;
}

/* Hamburger */
.hamburger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  height: 2px;
  background: #111
}

.mobile-btn {
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  gap: 5px;
  padding: 8px;
  display: inline-block;
}

/* Mobile menu */
.mobile-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: block;
}

.mobile-mask[hidden] {
  display: none !important;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: absolute;
  width: 100%;
  z-index: 999;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu a {
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  text-decoration: none
}


/* 首頁 - 輪播圖 */
#id-home-slider .swiper {
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  /* 固定 2:1 高寬比 */
  position: relative;
  overflow: hidden;
}

#id-home-slider .swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#id-home-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#id-home-slider .swipper-slogan {
  position: absolute;
  left: 50px;
  bottom: 50px;
  font-size: clamp(20px, 2vw, 35px);
  color: var(--slider-slogan-text-color);
  pointer-events: none;
  letter-spacing: 0.15em;
}

#id-home-slider .swiper-button-next,
#id-home-slider .swiper-button-prev {
  background-color: #FFF;
  width: 44px;
  height: 44px;
  padding: 14px;
  box-shadow: 0px 0px 3px #333;
  color: #333;
  border-radius: 10px;
  margin: -22px 10px;
}

#id-home-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  box-shadow: 0px 0px 1px #000;
}

/* 首頁 - slogan文字 + subhero */
.quote-box {
  position: relative;
  padding: 20px;
  font-size: 20px;
  min-width: 180px;
  margin: auto;
  display: flex;
  justify-content: center;
}

.quote-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
}

.quote-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--secondary-color);
  border-left: 2px solid var(--secondary-color);
}

.sub-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 40px auto
}

.sub-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 24px;
  line-height: 1.6;
  margin-top: 1em;
  text-indent: -1em;
  color: var(--secondary-color);
}

/* 首頁 About */
.about {
  position: relative;
  background: var(--muted-bg);
  padding: 32px 16px;
  margin: 40px auto;
  border-radius: 8px
}

.about .about-title {
  position: absolute;
  left: -1.2em;
  top: -1.2em;
  width: 1em;
  background-color: #FFF;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 1.2em;
  display: flex;
  justify-content: center;
}

.about-img img {
  margin-bottom: -170px;
}

.about-text {
  padding: 0 12px
}

.about-text h2 {
  font-size: 36px;
  margin: 0 0 10px
}

/* 首頁 Products */
.products {
  padding: 40px 0
}

.products h2 {
  text-align: center;
  margin: 0 0 16px
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px;
  background: #fff;
}

.product-card a {
  display: block;
  overflow: hidden;
}

.product-img {
  padding-top: 75%;
  background-position: center;
  background-size: cover;
  transition: all 0.3s;
}

.product-card:hover .product-img {
  transform: scale(1.1);
}

.product-meta {
  padding: 20px;
  display: grid;
  gap: 8px;
}

/*.product-meta .title {font-weight: 600;line-height: 30px;font-size: clamp(16px, 1.1vw, 20px);width: 100%;}*/
.product-meta .title {
  font-weight: 600;
  line-height: 30px;
  font-size: clamp(16px, 1.1vw, 20px);
  flex: 1 1 auto;
}

.product-meta .subtitle {
  flex: 1 1;
}

.product-meta .subtitle-container {
  color: var(--muted-text);
  padding-bottom: 10px;
  font-size: 0.9em;
}

/*.product-meta .price{font-weight: 600;width: 100px;justify-content: right;align-items: center;width: 100%;}*/
.product-meta .price {
  flex: 0 0 110px;
  text-align: right;
}

.lugo-pdt-org-price {
  opacity: 0.5
}

/* 內頁 - banner */
.page-banner {
  position: relative;
  height: clamp(300px, 10vh, 360px);
  padding-top: env(safe-area-inset-top);
  color: #fff;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8);
}

.page-text-banner {
  position: relative;
  min-height: 100px;
  padding: 20px 0px;
  background-color: #F6F6F6;
}

/* 商品頁面 */
/*.category-link {margin-bottom: 40px;}*/
.category-link {
  margin: 8px;
}

.category-link .mybutton.outline-btn+.mybutton.outline-btn {
  margin-bottom: 20px;
}

.page-text-banner .category-link {
  margin-bottom: 0px;
}

/* 商品分類頁 */
.product-card-img-container {
  position: relative;
}

.product-card-img-container .cate-temper-icon-container {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: #FFF;
  padding: 5px 10px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

img.cate-temper-hicon {
  width: 30px;
}

img.cate-temper-icon {
  width: 45px;
  flex: 0 0 45px;
}

/* 購物商品相關 */
.lugo-pdt-price {
  font-weight: bold;
  color: #000;
  font-size: 1.3em;
}

img.img-responsive {
  height: auto;
  max-width: 100%;
  display: flex;
  margin: auto;
}

/* 內頁 - 商品詳細 */
.pdt-gallery {
  max-width: 100%;
}

.pdt-swiper-main {
  width: 100%;
  margin-bottom: 10px;
}

.pdt-swiper-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  aspect-ratio: 4 / 3;
}

.pdt-swiper-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdt-swiper-thumbs {
  width: 100%;
}

.pdt-swiper-thumbs .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
}

.pdt-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.pdt-swiper-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdt-detail-temper-icon {
  margin-left: auto;
  margin-right: 30px;
}

.pdt-detail {
  margin-top: 56px;
}

.pdt-detail .subtitle {
  color: var(--muted-text);
  padding-bottom: 10px;
  font-size: 0.9em;
}

.pdt-swiper-main.swiper {
  border-radius: 10px;
}

.pdt-swiper-thumbs.swiper .swiper-slide img {
  border-radius: 10px;
}

.pdt-gallery .swiper-button-next,
.pdt-gallery .swiper-button-prev {
  background-color: #FFF;
  width: 44px;
  height: 44px;
  padding: 14px;
  box-shadow: 0px 0px 3px #333;
  color: #333;
  border-radius: 10px;
}

/* 內頁 - 購物車 */
.cart-danger {
  background-color: #E87F7F;
  color: #FFF;
  padding: 4px 12px;
  display: inline-block;
  font-size: 0.8em;
  border-radius: 12px;
  margin-top: 5px;
}

.cart-title-row {
  background-color: #F6F6F6;
  padding: 20px 40px;
  border: 1px solid var(--light-border-color);
  border-radius: 15px;
}

.cart-item-name-and-thumbnail {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
}

.cart-item-name-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 16px;
  gap: 8px;
}

.cart-item-name {
  font-size: 1.1em;
  font-weight: bold;
}

.cart-item-spec {
  margin-top: auto;
}

.cart-item-price {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: right;
  padding-right: 50px;
}

.cart-item-qty {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-subtotal {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  padding-right: 20px;
}

.cart-item-remove {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: right;
}

.cart-item-row {
  padding: 20px 40px;
}

.cart-item-row+.cart-item-row {
  border-top: 1px solid var(--light-border-color);
}

.cart-pdt-thumbnail {
  width: 150px;
  height: 150px;
  float: left;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  object-fit: cover;
  border-radius: 15px;
  padding: 10px;
}

.mycart-qty-section {
  display: inline-flex;
  align-items: center;
  color: #aaaaaa;
  border: 1px solid;
  border-radius: 10px;
}

.mycart-qty-section .mycart-qty-btn,
.gw_qtybtn {
  width: 46px;
  height: 40px;
  font-size: 18px;
  font-weight: 300;
  line-height: 40px;
  text-align: center;
  display: block;
  cursor: pointer;
  padding: 1px 0 0;
  border: none;
  background-color: transparent;
}

.mycart-qty-section .mycart-qty-btn:focus,
.gw_qtybtn:focus {
  outline: none;
}

.mycart-qty-section input,
input.gw_qty {
  min-width: 30px;
  width: 50px;
  height: 40px;
  border: none;
  line-height: 38px;
  padding: 0 !important;
  text-align: center;
  margin: 0 !important;
  outline: none;
}

.mycart-summary-title {
  border-bottom: 1px solid rgba(112, 72, 38, 0.5);
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.mycart-summary {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.mycart-summary th,
.mycart-summary td {
  vertical-align: top;
  padding: 10px 0px;
}

.mycart-remove-item:hover {
  opacity: 0.8;
}

#id-mycart-dely-group label.pure-radio-inline {
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
}

#id-mycart-dely-group label.pure-radio-inline+label.pure-radio-inline {
  margin-left: 20px;
}

#id-mycart-payment-method-group {
  margin-bottom: 40px;
}

#id-mycart-payment-method-group label.pure-radio-inline {
  font-size: 18px;
  font-weight: bold;
}

#id-mycart-payment-method-group label.pure-radio-inline+label.pure-radio-inline {
  margin-left: 20px;
}

#id-mycart-inv-group {
  margin-bottom: 40px;
}

#id-mycart-inv-group label.pure-radio-inline {
  font-size: 18px;
  font-weight: bold;
}

#id-mycart-inv-group label.pure-radio-inline+label.pure-radio-inline {
  margin-left: 20px;
}

.temper-badge img {
  height: 20px;
}

.checkout-coupon-name {
  font-size: 0.9em;
  border: 1px solid var(--primary-color);
  padding: 2px 10px;
  color: var(--primary-color);
  display: inline-block;
  border-radius: 4px;
}

.checkout-coupon-name.cart-coupon {
  background-color: var(--primary-color);
  color: #FFF;
}

.checkout-coupon-discount {
  color: var(--primary-color);
}

.pure-control-group {
  margin-top: 16px;
}

.pure-form-aligned input[type='text'],
.pure-form-aligned input[type='email'] {
  width: calc(100% - 11.5em);
}

.pure-form select {
  padding-right: 2.5em
}

.mycart-order-form .pure-control-group label {
  width: auto;
}

.order-col {
  padding: 0px 20px;
}

.order-col:first-child {
  padding-left: 0px;
}

.order-col:last-child {
  padding-right: 0px;
}

@media screen and (max-width: 1023px) {
  .order-col {
    padding: 0px;
  }
}

@media screen and (max-width: 1024px) {
  .cart-title-row {
    padding: 20px 5px;
  }

  .cart-item-row {
    padding: 20px 5px;
  }
}

@media screen and (max-width: 767px) {
  p {
    font-size: 16px;
  }

  .about .about-title {
    left: -4vw;
    ;
  }

  .about-img img {
    margin-bottom: -10vw;
  }

  .cart-title-row {
    display: none;
  }

  .cart-item-row {
    padding: 10px;
    border: 1px solid #a6a6a6;
    border-radius: 10px;
  }

  .cart-item-name-and-thumbnail {
    flex: 1 1 100%;
  }

  .cart-item-price {
    margin-top: 8px;
    flex: 0 0 30%;
    position: relative;
    padding-right: 0px;
    justify-content: center;
  }

  .cart-item-qty {
    margin-top: 8px;
    flex: 0 0 30%;
  }

  .cart-item-subtotal {
    flex: 0 0 30%;
    padding-right: 0px;
    margin-top: 0px;
    position: relative;
  }

  /*.cart-item-subtotal:before {content: "=";position: absolute;left: 20px;}*/
  /*.cart-item-price:after {content: "x";position: absolute;right: 20px;}*/
  .cart-item-remove {
    position: absolute;
    right: 10px;
    flex: 0 0 50%;
    justify-content: right;
    padding-right: 20px;
    margin-top: 10px;
  }

  .cart-item-row {
    position: relative;
  }

  .pdt-detail-temper-icon {
    margin-right: 10px;
  }

  ul.pure-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  li.pure-menu-item {
    flex: 0 0 calc(50% - 10px);
  }

  #id-member-nav .pure-menu-item {
    margin-bottom: 0px !important;
  }

  h2.content-subhead {
    margin-bottom: 0;
    margin-top: 0px;
  }

  .pure-message {
    padding: 5px !important;
    border-radius: 8px !important;
  }

  .checkout-coupon-name {
    max-width: 300px;
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .item-section {
    margin-top: 10px;
  }

  .item-section tr td {
    padding: 4px 0px;
  }

  table#id-summary-section {
    padding-top: 0px;
    margin-bottom: 0px;
    margin-top: 8px;
  }

  table#id-total-section {
    padding-top: 8px;
    margin-top: 8px;
  }
}

@media screen and (max-width: 500px) {
  .cart-item-price {
    flex: 0 0 50%;
  }

  .cart-item-qty {
    flex: 0 0 50%;
  }

  .cart-item-subtotal {
    flex: 0 0 50%;
    margin-top: 10px;
    justify-content: center;
  }

  li.pure-menu-item {
    flex: 1 1 100%;
  }

  #id-member-nav .pure-menu-item {
    margin-bottom: 0px;
  }

}


/* 訂單資訊頁面 */
.order-info-list {
  line-height: 2em;
  padding-left: 1em;
  margin-top: 0px;
}

#id-summary-section,
#id-total-section {
  border-top: 1px solid var(--light-border-color);
  margin-top: 24px;
  margin-bottom: 24px;
  padding-top: 24px;
}

#id-summary-section tr td {
  padding: 8px 0px;
}

.item-section {
  margin-top: 20px;
}

.item-section tr td {
  padding: 8px 0px;
}

.subtotal-panel {
  border: 1px solid #a6a6a6;
  padding: 20px;
  border-radius: 15px;
}

.subtotal-panel .border-top {
  border-top: 1px solid #A2A2A2;
}

.subtotal-panel .subtotal-panel-total {
  font-weight: bold;
  font-size: 1.4em;
}

.invoice-container div {
  line-height: 32px;
}

.invoice-container div.invoice-biz {
  line-height: 1.5em;
}

.paypane div,
.paypane p {
  padding: 0;
  margin: 0px;
  line-height: 32px;
}

/* 外層 tabs 區塊 */
.paytabs {
  display: flex;
  flex-wrap: wrap;
  /* border-bottom: 1px solid #e5e5e5; */
  gap: 8px;
}

/* 每個 tab 按鈕 */
.paytab {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  background-color: #f7f7f7;
  color: #666;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 1px solid #DDD;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

/* hover 效果 */
.paytab:hover {
  background-color: #ffffff;
  color: #333;
  border-color: #dddddd;
}

/* 被選取的 tab（你的 HTML 已經有 class="active"） */
.paytab.active {
  background-color: #ffffff;
  color: #333;
  /* 你可以改成品牌色 */
  border-color: #dddddd;
  border-bottom: 1px solid #ffffff;
  /* 視覺上與下面內容連在一起 */
  font-weight: 600;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.03);
  /* z-index: 999; */
}

/* 下面內容區塊 */
.paypanes {
  border: 1px solid #dddddd;
  border-radius: 0 8px 8px 8px;
  padding: 16px 18px;
  background-color: #ffffff;
  margin-top: -1px;
  /* 與 active tab 無縫接合 */
  font-size: 14px;
  color: #333;
}


/* 小螢幕微調：tab 改成佔滿一行 */
@media (max-width: 640px) {
  .paytabs {
    gap: 4px;
  }

  .paytab {
    flex: 1 1 48%;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
  }

  .paypanes {
    padding: 12px 14px;
  }
}

.history-notes:before {
  content: " ";
  margin-right: 0.5em;
  margin-left: 0.5em;
  border-left: 2px solid #999;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.history-notes {
  margin-top: 4px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #777;
  line-height: 1.3em;
}

.payment-history-detail label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.payment-history-detail .date {
  font-size: .8em;
}

/* 登入頁面 */
form#id-login-form label {
  width: 130px;
}

/* 會員介面 */
.border-panel {
  border: 1px solid var(--light-border-color);
  padding: 30px;
  border-radius: 12px;
}

/*.pure-control-group label {flex: 0 0 140px;}*/
.pure-control-group input {
  flex: 1 1 auto;
}

/* 會員登入後管理介面 */
#id-member-nav .pure-menu-item {
  margin-bottom: 16px;
}

.option-group label {
  display: inline-block;
}

.option-group label+label {
  margin-left: 16px;
}


/* 會員訂單表格 */
.myaccount-content {
  margin-left: 30px;
}

.my-member-order-table .tbl-col {
  display: flex;
  flex-flow: column nowrap;
}

.my-member-order-table .tb-row {
  display: flex;
  padding-bottom: 10px;
  padding-top: 10px;
  justify-content: left;
  flex-wrap: wrap;
}

.my-member-order-table .tb-row.row-center {
  justify-content: center;
}

.my-member-order-table .th,
.my-member-order-table .td {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  flex-shrink: 0;
}

.my-member-order-table .td.td-goto {
  margin-left: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

.my-member-order-table .th {
  padding: 10px 10px;
}

.my-member-order-table .th:first-child,
.td:first-child {
  width: 185px;
}

.my-member-order-table .th:nth-child(2),
.my-member-order-table .td:nth-child(2) {
  width: 200px;
}

.my-member-order-table .th:nth-child(3),
.my-member-order-table .td:nth-child(3) {
  width: 150px;
}

.my-member-order-table .th:nth-child(4),
.my-member-order-table .td:nth-child(4) {
  width: 150px;
}

.my-member-order-table .th.wadj,
.my-member-order-table .td.wadj {
  flex: 1 1 auto;
}

.my-member-order-table .th-row {
  margin-bottom: 20px;
  background-color: var(--table-header-bg);
  border: 1px solid var(--light-border-color);
  border-radius: 12px;
}

.my-member-order-table .tb-row-gap {
  border-bottom: 1px solid #bfb6a7;
  padding-top: 20px;
  margin-bottom: 20px;
}

.my-member-order-table .tb-func-row {
  justify-content: right;
}

.subtotal-panel.sm-expand {
  max-width: 800px;
  margin: auto;
}


/* Accordion 容器（搭配 Pure 的 .pure-g 版面） */
/*.accordion { border-radius: var(--radius); border:1px solid rgba(255,255,255,.08); overflow:hidden;backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(2,6,23,.45), inset 0 1px 0 rgba(255,255,255,.04); }*/
.accordion {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--muted-bg);
  border: 1px solid var(--primary-color);
}

.accordion .item+.item {
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* 使用 <details>/<summary>：無需 JS、可近性佳 */
.accordion details {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  font-weight: 700;
}

.accordion summary.logined {
  cursor: initial;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

/* 圖示與動畫 */
.accordion .chev {
  inline-size: 1em;
  block-size: 1em;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.accordion details[open] .chev {
  transform: rotate(90deg);
}

.accordion .content {
  padding: 0 20px 18px 44px;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.accordion details[open] .content {
  grid-template-rows: 1fr;
}

.accordion .content>div {
  overflow: hidden;
}

/* 可聚焦狀態（沿用 Pure 的 Reset，再補足自訂外框） */
.accordion summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Fix for Pure grid spacing */
.product-list>[class*="pure-u"] {
  padding: 8px
}

/* Footer */
.footer {
  background: var(--muted-bg);
  padding: 32px 0;
  margin-top: 48px;
  text-align: center
}

.footer-logo {
  font-weight: 700;
  margin-bottom: 8px;
  color: #111
}

.footer p {
  margin: .4rem 0
}

.footer .copyright {
  margin-left: auto;
}

.footer-menu .pure-menu-list {
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  gap: .5rem;
  white-space: normal;
  /* 取消 nowrap */
}

.footer-menu .pure-menu-item {
  /* 讓 <a> 內縮不擠出容器 */
  min-width: 0;
}

.footer-menu .pure-menu-link {
  display: block;
  padding: .25rem .5rem;
}

@media (max-width: 768px) {

  /* xs：改成直向堆疊，並移除右浮動 */
  .footer-menu.right {
    float: none;
    text-align: left;
  }

  /* 若 .right 來自 Pure 的浮動 */
  .my-member-order-table .th:first-child,
  .td:first-child {
    width: unset;
  }
}

/* Desktop overrides */
@media (min-width: 768px) {

  .hamburger,
  .mobile-btn {
    display: none
  }

  .menu-wrap {
    display: block;
    margin-left: auto;
    flex: 1;
    text-align: right;
  }

  #desktop-menu {
    justify-content: flex-end
  }

  .hero-inner {
    padding: 120px 16px
  }

  .sub-hero {
    grid-template-columns: 2fr 1fr;
    align-items: center
  }

  .sub-text {
    text-align: left;
    justify-self: center
  }

  .about {
    padding: 48px 32px
  }
}

/* Mobile overrides */
@media (max-width: 767px) {

  /* 首頁輪播 */
  #id-home-slider .swiper {
    width: 100vw;
  }

  #id-home-slider .swipper-slogan {
    left: 15px;
    bottom: 20px;
  }

  /* 首頁 */
  .about-text h2 {
    font-size: 1.5em
  }

  .footer-menu .pure-menu-list {
    justify-content: left;
  }

  .myaccount-content {
    margin-left: 0px;
  }

  .my-member-order-table .th.th-oid {
    flex: 0 0 50%;
  }

  .my-member-order-table .th.th-status {
    margin-left: auto;
    flex: 0 0 50%;
  }

  .my-member-order-table .tb-row {
    flex-wrap: wrap;
  }

  .my-member-order-table .td.td-oid {
    flex: 0 0 50%;
  }

  .my-member-order-table .td.td-status {
    flex: 0 0 50%;
    justify-content: right;
  }

  .my-member-order-table .td.td-summary {
    flex: 0 0 50%;
  }

  .subtotal-panel.sm-expand {
    width: 106%;
    margin-left: -3%;
    padding: 0px 10px;
    border-radius: 10px;
  }

  .accordion {
    margin-bottom: 20px;
  }
}

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

  /* banner */
  .page-banner {
    height: 150px;
  }

  /* footer */
  .footer-logo {
    width: 100%;
  }

  .footer p {
    text-align: center;
  }

  .footer-menu .pure-menu-list {
    justify-content: center;
  }

  .footer .copyright {
    margin: auto;
  }


  .category-link .mybutton {
    min-height: 44px;
    min-width: 100px;
    padding: 0.8em 1em;
  }
}





/* 覆寫彈跳視窗 */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  background-color: var(--primary-btn-bg) !important;
  color: var(--primary-btn-text) !important;
}


/* =========
   Display Utilities (Bootstrap-like)
   Breakpoints: sm=576px, md=768px, lg=992px, xl=1200px
   使用時建議搭配 !important 以提高優先度
   ========= */

/* Base (xs) */
.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

.d-table {
  display: table !important;
}

.d-table-cell {
  display: table-cell !important;
}

.d-table-row {
  display: table-row !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

/* sm ≥ 576px */
@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-inline {
    display: inline !important;
  }

  .d-sm-inline-block {
    display: inline-block !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-table {
    display: table !important;
  }

  .d-sm-table-cell {
    display: table-cell !important;
  }

  .d-sm-table-row {
    display: table-row !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .d-sm-inline-flex {
    display: inline-flex !important;
  }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-inline {
    display: inline !important;
  }

  .d-md-inline-block {
    display: inline-block !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-table {
    display: table !important;
  }

  .d-md-table-cell {
    display: table-cell !important;
  }

  .d-md-table-row {
    display: table-row !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-inline-flex {
    display: inline-flex !important;
  }
}

/* lg ≥ 992px */
@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-inline {
    display: inline !important;
  }

  .d-lg-inline-block {
    display: inline-block !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-table {
    display: table !important;
  }

  .d-lg-table-cell {
    display: table-cell !important;
  }

  .d-lg-table-row {
    display: table-row !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-inline-flex {
    display: inline-flex !important;
  }
}

/* xl ≥ 1200px */
@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-inline {
    display: inline !important;
  }

  .d-xl-inline-block {
    display: inline-block !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-table {
    display: table !important;
  }

  .d-xl-table-cell {
    display: table-cell !important;
  }

  .d-xl-table-row {
    display: table-row !important;
  }

  .d-xl-flex {
    display: flex !important;
  }

  .d-xl-inline-flex {
    display: inline-flex !important;
  }
}

/* Header Menu Styles */
@media (min-width: 768px) {
  .menu-wrap {
    height: 100%;
  }

  #desktop-menu {
    height: 100%;
  }

  span.cart-total-num {
    top: unset;
    margin-top: -30px;
  }

  #desktop-menu .pure-menu-item {
    height: 100%;
    align-items: center;
    display: inline-flex;
  }

  #desktop-menu .pure-menu-item .pure-menu-item {
    height: 44px;
  }

  ul#desktop-menu .pure-menu-item a.pure-menu-link {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .pure-menu-children {
    left: 0px;
    top: 100%;
    width: 100%;
    text-align: center;
    border: 1px solid #eaeaea;
    box-shadow: 5px 5px 5px #CCC;
  }

  ul#desktop-menu .pure-menu-children {
    padding: 0px 10px;
    box-sizing: content-box;
  }

  .header-inner {
    height: 70px;
    padding: 0px;
  }


  .pure-menu-has-children>.pure-menu-link:after {
    content: "\25BE";
    font-size: 24px;
    margin-left: 0px;
    margin-top: -4px;
    color: inherit;
    display: inline-block;
    position: absolute;
    right: 4px;
  }

  .pure-menu-has-children {
    padding-right: 10px;
  }

  .header .pure-menu-link {
    height: 70px;
  }

  ul#desktop-menu .pure-menu-link {
    height: 70px;
    display: inline-flex;
    align-items: center;
  }
}

/* Footer Menu Nested Styles */
.footer-menu .pure-menu-item.footer-menu-item {
  vertical-align: top;
  display: inline-block;
  position: relative;
}

.footer-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  text-align: left;
  min-width: 100%;
}

.footer-submenu .pure-menu-item {
  display: block;
  width: 100%;
}

.footer-submenu .pure-menu-link {
  /*padding: 2px 10px;*/
  /*font-size: 0.9em;*/
  color: var(--muted-text);
}

.footer-submenu .pure-menu-link:hover {
  color: var(--primary-color);
  background: transparent;
}

/* Footer Menu Responsive Styles */
.footer-menu-item .footer-submenu .pure-menu-item {
  height: auto;
}

.footer-submenu {
  padding-left: 0px;
}

@media screen and (max-width: 768px) {
  .footer-menu .pure-menu-list {
    gap: 0;
  }

  .footer-menu .pure-menu-list .footer-menu-item {
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 576px) {
  .footer-menu .pure-menu-list {
    text-align: center;
  }
}

/* Floating News */
.floating-news {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  /*width: 150px;*/
  /*height: 150px;*/
  width: 300px;
  height: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  /* Ensure content stays within rounded corners */
}

.floating-news .close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1001;
  transition: background 0.3s ease;
}

.floating-news .close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Swiper in Floating News */
.floating-news .swiper {
  width: 100%;
  height: 100%;
}

.floating-news .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /*height: 150px !important;*/
  /*width: 150px !important;*/
  height: 100%;
  width: 100%;
}

.floating-news .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.floating-news .swiper-pagination-bullet {
  border: 1px solid #FFF;
}

.floating-news .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0px 0px 1px #000;
  opacity: 1;
}