/*
 * Simplica Free OpenCart Theme CSS
 * By Harnish Design
 * www.harnishdesign.net
 */

body {
  font-family: 'Microsoft JhengHei', sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 15px;
  line-height: 22px;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
}

/* default font size */
.h3color {
  font-size: 18.72px;
  color: #ED3729;
}

.fa {
  font-size: 17px;
  color: #666666;
}

.fa-cart2 {
  color: #ffffff;
}

.fa-white {
  color: #ffffff;
}

.icon_png {
  width: 32px;
  height: 32px;
}

/* Override the bootstrap defaults */
h1 {
  font-size: 33px;
  margin-top: 0px;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 15px;
}

h5 {
  font-size: 14px;
}

h6 {
  font-size: 12px;
}

.container {
  /* padding: 0; */
}

a {
  color: #007acc;
}

a:hover {
  text-decoration: none;
  color: #000;
}

legend {
  font-size: 18px;
  padding: 7px 0px
}

label {
  font-size: 14px;
  font-weight: normal;
}

select.form-control,
textarea.form-control,
input[type="text"].form-control,
input[type="password"].form-control,
input[type="datetime"].form-control,
input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="month"].form-control,
input[type="time"].form-control,
input[type="week"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="url"].form-control,
input[type="search"].form-control,
input[type="tel"].form-control,
input[type="color"].form-control {
  font-size: 12px;
}

.input-group input,
.input-group select,
.input-group .dropdown-menu,
.input-group .popover {
  font-size: 12px;
}

.input-group .input-group-addon {
  font-size: 12px;
  height: 30px;
}

/* Fix some bootstrap issues */
span.hidden-xs,
span.hidden-sm,
span.hidden-md,
span.hidden-lg {
  display: inline;
}

.tab-content>.tab-pane {
  border: 1px solid #ddd;
  border-width: 0px 1px 1px 1px;
  padding: 15px;
}

div.required .control-label:before {
  content: '* ';
  color: #F00;
  font-weight: bold;
}

/* Gradent to all drop down menus */
.dropdown-menu li>a:hover {
  text-decoration: none;
  color: #007acc;
  background-color: #eee;
}

.dropdown-menu {
  border: none;
}

#product {
  margin-top: 10px;
}

/* top */
#top {
  padding: 0;
  margin: 0 0 16px 0;
  min-height: 36px;
}

#top .container {
  padding: 0 5px;
}

#top #form-currency .currency-select,
#top #form-language .language-select {
  text-align: left;
  color: #333;
  font-size: 13px;
  padding: 3px 16px;
}

#top #form-currency .currency-select:hover,
#top #form-language .language-select:hover {
  text-shadow: none;
  text-decoration: none;
  color: #007acc;
  background-color: #eee;
}

#top .btn-group>.btn-link,
#top-links>ul>li,
#top-links>ul>li>a {
  color: #000000;
  background: none;
  text-decoration: none;
}

#top .btn-group>.btn-link:hover,
#top-links>ul>li>a:hover {
  color: #ff8a00;
}

#top-links .dropdown-menu a {
  text-shadow: none;
  font-size: 13px;
}

#top .btn-link strong {
  font-size: 14px;
  line-height: 14px;
}

#top-links {
  padding-top: 0px;
}

#top-links a+a {
  margin-left: 15px;
}

/* logo */
#logo {
  margin: 0 0 15px 0;
}

/* search */
#search {
  margin-bottom: 15px;
}

#search .input-lg {
  height: 40px;
  line-height: 20px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  border-right: none;
}

#search .btn-lg {
  color: #999;
  font-size: 15px;
  line-height: 18px;
  padding: 10px 15px;
  text-shadow: none;
  box-shadow: none;
  background: none;
  border: 1px solid #e0e0e0;
  border-left: none;
}

/* cart */
#cart {
  margin-bottom: 15px;
  float: right;
}

#cart>.btn {
  font-size: 14px;
  line-height: 18px;
  color: #666;
  background: none;
  border: 1px solid #e0e0e0;
  text-shadow: none;
  box-shadow: none;
}

#cart>.btn .fa {
  font-size: 22px;
}

#cart.open>.btn {
  background-image: none;
  color: #007acc;
}

#cart.open>.btn:hover {
  color: #007acc;
}

#cart .dropdown-menu {
  z-index: 1001;
  min-width: 350px;
}

@media (max-width: 767px) {
  #cart {
    float: none;
    text-align: center;
    display: block;
  }

  #cart>.btn {
    float: none;
    padding: 8px 0px;
  }

  #cart .dropdown-menu {}

  #logo {
    text-align: center;
  }

  #logo img {
    display: inline-block;
  }
}

@media (max-width: 478px) {
  #cart .dropdown-menu {
    min-width: 100%;
  }
}

#cart .dropdown-menu table {
  margin-bottom: 10px;
}

#cart .dropdown-menu li>div {
  min-width: 427px;
  padding: 0 10px;
}

@media (max-width: 478px) {
  #cart .dropdown-menu li>div {
    min-width: 100%;
  }
}

#cart .dropdown-menu li p {
  margin: 20px 0;
}

/* menu */
#menu {
  background-color: #ffffff;
  min-height: 40px;
}

#menu .navbar-collapse {
  padding: 0;
}

#menu .nav>li>a {
  color: #000;
  padding: 10px 15px 10px 15px;
  min-height: 16px;
  background-color: transparent;
  font-size: 16px;
}

#menu .nav>li:hover>a,
#menu .nav>li.open>a {
  background-color: #FF8A00;
  color: #fff;
  border-radius: 10px;
}

#menu .dropdown-menu {
  padding-bottom: 0;
}

#menu .dropdown-inner {
  display: table;
}

#menu .dropdown-inner ul {
  display: table-cell;
}

#menu .dropdown-inner a {
  min-width: 175px;
  display: block;
  padding: 4px 20px;
  clear: both;
  line-height: 20px;
  color: #333333;
  font-size: 15px;
}

#menu .dropdown-inner li a:hover {
  background-color: #fff0db;
  color: #000000;
}

#menu .see-all {
  display: block;
  margin-top: 0.5em;
  border-top: 1px solid #DDD;
  padding: 3px 20px;
  -webkit-border-radius: 0 0 4px 4px;
  -moz-border-radius: 0 0 4px 4px;
  border-radius: 0 0 3px 3px;
  font-size: 15px;
}

#menu .see-all:hover,
#menu .see-all:focus {
  text-decoration: none;
  color: #ffffff;
  background-color: #ff9b19;
}

#menu #category {
  float: left;
  font-size: 16px;
  line-height: 40px;
  color: #000;
  margin-left: 15px;
}

#menu .btn-navbar {
  font-size: 15px;
  font-stretch: expanded;
  color: #FFF;
  padding: 8px 18px;
  float: right;
  background-color: #ff9b19;
}

#menu .btn-navbar:hover,
#menu .btn-navbar:focus,
#menu .btn-navbar:active,
#menu .btn-navbar.disabled,
#menu .btn-navbar[disabled] {
  color: #ffffff;
  background-color: #B36200;
}

#menu .navbar-toggle {
  margin-top: 2px;
  margin-right: 0px;
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  #menu .navbar-nav {
    margin: 0;
  }

  #menu .in {
    border-top: 1px dotted #bbb;
  }

  #menu {
    border-radius: 4px;
  }

  #menu div.dropdown-inner>ul.list-unstyled {
    display: block;
  }

  #menu div.dropdown-menu {
    margin-left: 0 !important;
    padding-bottom: 10px;
    background-color: #fff;
  }

  #menu .dropdown-inner {
    display: block;
  }

  #menu .dropdown-inner a {
    width: 100%;
    color: #222;
  }

  #menu .dropdown-menu a:hover,
  #menu .dropdown-menu ul li a:hover {
    background-color: #eee;
  }

  #menu .see-all {
    margin-top: 0;
    border: none;
    border-radius: 0;
    color: #222;
  }

  #menu .see-all:hover {
    color: #007acc;
  }
}

/* Product gallery popup (Magnific + Swiper) */
.product-gallery {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  gap: 16px;
}

.product-gallery__main,
.product-gallery__thumbs {
  position: relative;
}

.product-gallery-thumbs .swiper-slide-active{
  border: 3px solid #FF8A00 !important; 
}

.product-gallery-main .swiper-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs .swiper-slide {
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  border: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.product-gallery-thumbs .swiper-slide.thumb-active {
  border-color: #FF8A00;
}

.product-gallery-thumbs .swiper-slide:hover {
  border-color: #FFD199;
}

.product-gallery-thumbs .swiper-slide.thumb-active:hover {
  border-color: #FF8A00;
}

.product-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .product-gallery-main .swiper-slide img {
    height: 370px;
  }

  .product-gallery-thumbs .swiper-slide {
    width: 87px;
    height: 87px;
  }
  
  .product-gallery-thumbs .swiper-slide.thumb-active {
    border-color: #FF8A00;
  }
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
  width: 38px;
  height: 60px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  z-index: 10;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.product-gallery-main .swiper-button-next:after,
.product-gallery-main .swiper-button-prev:after {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
}

.product-gallery-main .swiper-button-next:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.product-gallery-main .swiper-button-prev:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.product-gallery-main .swiper-button-prev {
  left: 8px;
}

.product-gallery-main .swiper-button-next {
  right: 8px;
}


.product-gallery-thumbs .swiper-button-next,
.product-gallery-thumbs .swiper-button-prev {
  width: 24px;
  height: 40px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  z-index: 10;
  position: absolute;
  top: 50%;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.product-gallery-thumbs .swiper-button-next:after,
.product-gallery-thumbs .swiper-button-prev:after {
  content: '';
  width: 16px;
  height: 16px;
  display: block;
}

.product-gallery-thumbs .swiper-button-next:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.product-gallery-thumbs .swiper-button-prev:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.product-gallery-thumbs .swiper-button-prev {
  left: 8px;
}

.product-gallery-thumbs .swiper-button-next {
  right: 8px;
}

.mfp-product-gallery .mfp-content {
  background: white;
  padding: 16px;
  height: 512px;
  max-width: 908px;
  box-sizing: border-box;
}

.mfp-product-gallery .product-gallery-popup__content {
  display: flex;
  gap: 16px;
  height: 100%;
}

.mfp-product-gallery .product-gallery-popup__left {
  width: 480px;
  height: 480px;
  flex: 0 0 480px;
}

.mfp-product-gallery .product-gallery-swiper {
  width: 480px;
  height: 480px;
  position: relative;
}

.mfp-product-gallery .product-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mfp-product-gallery .product-gallery-swiper .swiper-button-next,
.mfp-product-gallery .product-gallery-swiper .swiper-button-prev {
  width: 38px;
  height: 60px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  transition: background 0.2s ease;
}

.mfp-product-gallery .product-gallery-swiper .swiper-button-next:hover,
.mfp-product-gallery .product-gallery-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

.mfp-product-gallery .product-gallery-swiper .swiper-button-next::after,
.mfp-product-gallery .product-gallery-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.mfp-product-gallery .product-gallery-popup__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.mfp-product-gallery .product-gallery-popup__title {
  font-size: 24px;
  line-height: 1.2;
}

.mfp-product-gallery .product-gallery-popup__thumbs {
  width: 374px;
display: flex;

  scrollbar-width: thin;
  scrollbar-color: #D1D5DB transparent;
}

.mfp-product-gallery .product-gallery-popup__thumbs::-webkit-scrollbar {
  height: 6px;
}

.mfp-product-gallery .product-gallery-popup__thumbs::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

.mfp-product-gallery .product-gallery-popup__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.mfp-product-gallery .product-gallery-popup__thumbs-track {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mfp-product-gallery .product-gallery-popup__thumb {
  width: 114px;
  height: 114px;
  flex: 0 0 114px;
  padding: 0;

  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.mfp-product-gallery .product-gallery-popup__thumb:hover {
  border-color: #FFD199;
}

.mfp-product-gallery .product-gallery-popup__thumb.active {
  border-color: #FF8A00;
}

.mfp-product-gallery .product-gallery-popup__thumb.active:hover {
  border-color: #FF8A00;
}

.mfp-product-gallery .product-gallery-popup__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfp-product-gallery .swiper-button-next,
.mfp-product-gallery .swiper-button-prev {
  width: 36px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  /* top: 50%; */
  position: absolute;
  /* margin: 0; */
  cursor: pointer;
}

.mfp-product-gallery .swiper-button-prev {
  left: 8px;
}

.mfp-product-gallery .swiper-button-next {
  right: 8px;
}

@media (max-width: 767px) {
  .mfp-container {
    display: flex;
    align-items: center;
  }

  .mfp-container:before {
    display: none !important;
    height: 0;
  }

  .mfp-content {
    vertical-align: top;
  }
}

.mfp-product-gallery .swiper-button-next:after,
.mfp-product-gallery .swiper-button-prev:after {
  content: '';
  width: 20px;
  height: 20px;
  display: block;
}

.mfp-product-gallery .swiper-button-next:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mfp-product-gallery .swiper-button-prev:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z' fill='%23D1D5DB'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-button-prev {
  border-radius: 0 4px 4px 0;
  margin-left: -10px;
}

.swiper-button-next {
  border-radius: 4px 0 0 4px;
  margin-right: -10px;
}


/* content */
#content {
  min-height: 600px;
  padding: 0 16px 48px;
}

/* footer */
footer {
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  background-color: #21242b;
  color: #cccccc;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid #cccccc;
}

footer a {
  color: #EEEEEE;
}

footer a:hover {
  color: #FFD54F;
  text-decoration: underline;
}

footer h5 {
  font-family: 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

footer li {
  margin: 4px 0;
}

footer li a {
  position: relative;
  padding-left: 12px;
  color: #EEEEEE;
}

footer li a:after {
  font-family: "FontAwesome";
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  text-decoration: none;
  font-size: 14px;
  left: 0;
  text-indent: 0;
  text-transform: none;
  text-align: center;
  content: '  ';
  position: absolute;
}

footer li a:hover {
  color: #FFD54F;
  text-decoration: underline;
}

/* alert */
.alert {
  padding: 8px 14px 8px 14px;
}

/* breadcrumb */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 0px;
  background: none;
}

.breadcrumb i {
  font-size: 15px;
}

.breadcrumb>li {
  text-shadow: 0 1px 0 #FFF;
  padding: 0 10px;
  position: relative;
}

.breadcrumb>li:first-child {
  padding-left: 2px;
}

.breadcrumb>li a {
  color: #777
}

.breadcrumb>li a:hover {
  color: #007acc
}

.breadcrumb>li+li:before {
  content: '';
  padding: 0;
}

.breadcrumb>li:after {
  content: '';
  display: block;
  position: absolute;
  top: 6px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.pagination {
  margin: 0;
}

/* buttons */
.buttons {
  margin: 1em 0;
}

.btn {
  padding: 7px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
}

.btn-xs {
  font-size: 9px;
}

.btn-sm {
  font-size: 10.2px;
}

.btn-lg {
  padding: 10px 16px;
  font-size: 15px;
}

.btn-group>.btn,
.btn-group>.dropdown-menu,
.btn-group>.popover {
  font-size: 15px;
}

.btn-group>.btn-xs {
  font-size: 9px;
}

.btn-group>.btn-sm {
  font-size: 10.2px;
}

.btn-group>.btn-lg {
  font-size: 15px;
}

.btn-default {
  color: #E07A00;
  background-color: #FFE8CC;
}

.btn-primary {
  color: #ffffff;
  background-color: #007acc;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled] {
  background-color: #222;
}

.btn-warning {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #faa732;
  background-image: linear-gradient(to bottom, #fbb450, #f89406);
  background-repeat: repeat-x;
  border-color: #f89406 #f89406 #ad6704;
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.btn-warning.disabled,
.btn-warning[disabled] {
  box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-danger {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #da4f49;
}

.btn-danger:hover,
.btn-danger:active,
.btn-danger.active,
.btn-danger.disabled,
.btn-danger[disabled] {
  box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-success {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #5bb75b;
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
  box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1);
}

.btn-info {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #df5c39;
}

.btn-info:hover,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled] {
  background-image: none;
  background-color: #df5c39;
}

.btn-link {
  border-color: rgba(0, 0, 0, 0);
  cursor: pointer;
  color: #23A1D1;
  border-radius: 0;
}

.btn-link,
.btn-link:active,
.btn-link[disabled] {
  background-color: rgba(0, 0, 0, 0);
  background-image: none;
  box-shadow: none;
}

.btn-inverse {
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #363636;
}

.btn-inverse:hover,
.btn-inverse:active,
.btn-inverse.active,
.btn-inverse.disabled,
.btn-inverse[disabled] {
  background-color: #222222;
}

/* list group */
 #column-left .list-group {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 10px;
 }

.list-group a {
  border: 1px solid #DDDDDD;
  color: #888888;
  padding: 8px 12px;
}

.list-group a.active,
.list-group a.active:hover,
.list-group a:hover {
  color: #007acc;
  background: #eeeeee;
  border: 1px solid #DDDDDD;
}

/* 左側欄：僅限分類側欄（.sidebar-category） */
#column-left .sidebar-category .list-group {
  border: none;
}

#column-left .sidebar-category .list-group .list-group-item {
  padding: 8px 16px;
  background: white;
  color: #374151;
  border: none;
  border-radius: 0;
  border-bottom: none;
}

#column-left .sidebar-category .list-group .list-group-item.sidebar-parent {
  border-bottom: 1px solid #E5E7EB;
}

#column-left .sidebar-category .list-group .list-group-item.sidebar-child {
  border-bottom: none;
}

#column-left .sidebar-category .list-group .list-group-item:hover {
  border-radius: 4px;
  background: #FFF4E6;
  color: #B36200;
}

#column-left .sidebar-category .list-group .list-group-item.active,
#column-left .sidebar-category .list-group .list-group-item.active:hover {
  background: #FFE8CC;
  color: #B36200;
  border-radius: 4px;
}

/* carousel */
.carousel-caption {
  color: #FFFFFF;
  text-shadow: 0 1px 0 #000000;
}

.carousel-control .icon-prev:before {
  content: '\f053';
  font-family: FontAwesome;
}

.carousel-control .icon-next:before {
  content: '\f054';
  font-family: FontAwesome;
}

/* product list */
.product-thumb {
  overflow: auto;
}

.product-thumb .image {
  text-align: center;
}

.product-thumb .image a {
  display: block;

}

.product-thumb .image a:hover {
  opacity: 0.8;
}

.product-thumb .image img {
  margin-left: auto;
  margin-right: auto;
}

.product-thumb .product-content a, .product-thumb .product-content a:hover {
  color: #374151;
}

.product-grid .product-thumb .image {
  float: none;
  position: relative;
}


@media (min-width: 767px) {
  .product-list .product-thumb .image {
    float: left;
    padding: 0 15px;
  }
}

.product-thumb .caption {
  text-align: center;
}

.vip-price-h3 {
  font-weight: 400 !important;
  color: #374151;
  margin: 24px 0 8px 0;
}

/* VIP 價格表 */
.vip-price-table {
  border: 1px solid #FFE8CC !important;
  border-collapse: collapse;
  color: #374151;
}
.vip-price-table td,
.vip-price-table th {
  border: none !important;
}
.vip-price-table tbody tr:nth-child(odd) {
  background-color: #FFF4E6;
}



/* 自訂選項按鈕 */
.custom-option-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-option-btn {
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #6B7280;
  border: 1px solid #6B7280;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-option-btn:hover {
  color: #E07A00;
  border-color: #E07A00;
}

.custom-option-btn.active {
  background-color: #B36200;
  color: #ffffff;
  border-color: #B36200;
}

.custom-option-btn .option-price {
  font-weight: 400;
  margin-left: 4px;
}

/* 商品頁數量選擇與操作按鈕 */
.product-quantity-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-qty-label {
  font-size: 15px;
  line-height: 22px;
  color: #374151;
  margin: 0;
}

.product-number-spinner {
  width: auto;
  display: inline-flex;
  margin: 0;
  margin-right: auto;
    margin-left: 16px;
}

.product-number-spinner .qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EB;
  background: white;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-number-spinner .qty-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.product-number-spinner .qty-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.product-number-spinner .input-group-btn:last-child .qty-btn {
  border-radius: 0 4px 4px 0;
}

.product-number-spinner .input-group-btn {
  border-radius: 0 4px 4px 0;
  width: 40px;
}

.product-number-spinner .qty-icon {
  width: 24px;
  height: 24px;
  transition: filter 0.2s ease;
}

/* 調整 icon 顏色：預設 #6B7280 */
.product-number-spinner .qty-btn .qty-icon {
  filter: brightness(0) saturate(100%) invert(46%) sepia(6%) saturate(739%) hue-rotate(181deg) brightness(94%) contrast(87%);
}

/* hover 時稍微變深 #374151 */
.product-number-spinner .qty-btn:hover .qty-icon {
  filter: brightness(0) saturate(100%) invert(27%) sepia(8%) saturate(897%) hue-rotate(181deg) brightness(95%) contrast(88%);
}

/* active/按下時更深 #1F2937 */
.product-number-spinner .qty-btn:active .qty-icon {
  filter: brightness(0) saturate(100%) invert(14%) sepia(8%) saturate(1240%) hue-rotate(181deg) brightness(97%) contrast(91%);
}

.product-number-spinner .qty-input {
  width: 40px;
  height: 40px;
  border-left: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  border-radius: 0;
  color: #FF8A00;
  font-size: 15px !important;
  line-height: 22px;
  font-weight: 700;
  padding: 0;
  box-shadow: none;
}

.product-number-spinner .qty-input:focus {
  border-color: #E5E7EB;
  box-shadow: none;
}

/* 商品詳情頁操作按鈕（加入購物車、收藏） */
.product-detail-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.detail-btn {
  padding: 8px 16px;
  height: 40px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.detail-btn-cart {
  background: #FF8A00;
  color: white;
}

.detail-btn-cart:hover {
  background: #e67a00;
  color: white;
}

.detail-btn-wishlist {
  background: white;
  color: #FF8A00;
  border: 1px solid #FF8A00 !important;
}

.detail-btn-wishlist:hover {
  background: #FFE8CC;
  color: #E07A00;
  border-color: #E07A00 !important;
}

.detail-btn-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: filter 0.3s;
}

.detail-btn-wishlist .detail-btn-icon {
  filter: brightness(0) saturate(100%) invert(58%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(1) contrast(1);
}

.detail-btn-wishlist:hover .detail-btn-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(1deg) brightness(95%) contrast(101%);
}

/* 商品優惠訊息區塊 */
.product-promo-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 桌面版：顯示在圖片區域內 */
.product-promo-info-container-desktop {
  display: flex;
}

/* 移動版：顯示在價格資訊下方 */
.product-promo-info-container-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* 768px 以下隱藏桌面版 */
  .product-promo-info-container-desktop {
    display: none;
  }
  
  /* 768px 以下顯示移動版 */
 
  .product-promo-info-container-mobile {
    display: flex;
    margin-top: 12px;
    margin-bottom: 12px;
    gap: 8px;
  }
}

.vip-price-h3,.option-h3{
  margin: 16px 0 8px 0;
}

.product-promo-info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.promo-item-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.promo-item-group .promo-item-warning {
  min-width: max-content;
  flex-shrink: 0;
}

.promo-item-group .promo-item-dark {
  flex: 1;
  min-width: 0;
}

.promo-item {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 18px;
}

.promo-item span {
  font-size: 13px;
  line-height: 18px;
}

.promo-item-warning {
  background-color: #FFD199;
  color: #804600;
}

.promo-item-dark {
color: #333333;

}

.promo-item-link {
  background-color: transparent;
  padding: 0;
}

.promo-item-link a {
  color: #4774D6;
  text-decoration: none;
  font-size: 13px;
  line-height: 18px;
}

.promo-item-link a:hover {
  text-decoration: underline;
}

.product-thumb .caption>h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.product-thumb .caption>p {
  display: none;
}

.product-thumb .caption>p.price {
  display: block;
  font-size: 16px;
  color: #ED3729;
}

.product-list .product-thumb .caption {
  text-align: left;
}

@media (max-width: 767px) {
#product-category #content{
  gap: 0 !important;
}

  .product-list .product-thumb .caption {
    min-height: 0;
    margin-left: 0;
  }

  .product-grid .product-thumb .caption {
    min-height: 0;
  }
}

.product-thumb .rating {
  padding-bottom: 10px;
}

.rating .fa-stack {
  font-size: 8px;
}

.rating .fa-star-o {
  color: #999;
  font-size: 15px;
}

.rating .fa-star {
  color: #FC0;
  font-size: 15px;
}

.rating .fa-star+.fa-star-o {
  color: #E69500;
}

h2.price {
  margin: 0;
  color: #ED3729;
  font-family: verdana;
  margin-bottom: 12px;
}

.price-color {
  display: inline-block;
  color: #ED3729;
}

.product-thumb .price {
  color: #444;
}

.product-thumb .price-new {
  font-size: 16px;
  font-weight: bold;
  color: #ED3729;
}

.product-thumb .price-old {
  color: #999;
  text-decoration: line-through;
  margin-left: 10px;
}

.product-thumb .price-tax {
  color: #999;
  font-size: 12px;
  display: block;
}

.product-thumb .button-group {
  background-color: #eee;
  overflow: auto;
  visibility: hidden;
}

.product-thumb:hover .button-group {
  visibility: visible;
}

.product-list .product-thumb .button-group {
  visibility: visible;
}

.product-list .product-thumb .caption>p {
  display: block;
}

@media (max-width: 768px) {
  .product-list .product-thumb .button-group {
    border-left: none;
  }
}

.product-thumb .button-group button {
  width: 50%;
  border: none;
  display: inline-block;
  float: left;
  background-color: #eee;
  color: #888;
  line-height: 38px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.product-thumb .button-group button+button {
  width: 50%;
  border-left: 1px solid #ddd;
}

.product-thumb .button-group button:hover {
  color: #fff;
  background-color: #007acc;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1200px) {

  .product-thumb .button-group button,
  .product-thumb .button-group button+button {
    width: 33.33%;
  }
}

@media (max-width: 767px) {

  .product-thumb .button-group button,
  .product-thumb .button-group button+button {
    width: 33.33%;
  }
}

.thumbnails {
  overflow: auto;
  clear: both;
  list-style: none;
  padding: 0;
  margin: 0;
}

.thumbnails>li {
  margin-left: 20px;
}

.thumbnails {
  margin-left: -20px;
}

.thumbnails>img {
  width: 100%;
}

.image-additional a {
  margin-bottom: 20px;
  padding: 5px;
  display: block;
  border: 1px solid #ddd;
}

.image-additional {
  max-width: 78px;
}

.thumbnails .image-additional {
  float: left;
  margin-left: 20px;
}

@media (min-width: 1200px) {

  #content .col-lg-2:nth-child(6n+1),
  #content .col-lg-2:nth-child(6n+1),
  #content .col-lg-3:nth-child(4n+1),
  #content .col-lg-4:nth-child(3n+1),
  #content .col-lg-6:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {

  #content .col-md-2:nth-child(6n+1),
  #content .col-md-2:nth-child(6n+1),
  #content .col-md-3:nth-child(4n+1),
  #content .col-md-4:nth-child(3n+1),
  #content .col-md-6:nth-child(2n+1) {
    clear: left;
  }
}

@media (min-width: 768px) and (max-width: 991px) {

  #content .col-sm-2:nth-child(6n+1),
  #content .col-sm-2:nth-child(6n+1),
  #content .col-sm-3:nth-child(4n+1),
  #content .col-sm-4:nth-child(3n+1),
  #content .col-sm-6:nth-child(2n+1) {
    clear: left;
  }
}

/* fixed colum left + content + right*/
@media (min-width: 768px) {
  #column-left .product-layout .col-md-3 {
    width: 100%;
  }

  #column-left+#content .product-layout .col-md-3 {
    width: 50%;
  }

  #column-left+#content+#column-right .product-layout .col-md-3 {
    width: 100%;
  }

  #content+#column-right .product-layout .col-md-3 {
    width: 100%;
  }
}

.well>h2 {
  margin-top: 0px;
}

/* fixed product layouts used in left and right columns */
#column-left .product-layout,
#column-right .product-layout {
  width: 100%;
}

/* fixed mobile cart quantity input */
.input-group .form-control[name^=quantity] {
  min-width: 50px;
}

/* Missing focus and border color to overwrite bootstrap */
.btn-info:hover,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled] {
  background-image: none;
  background-color: #df5c39;
}

.btn-info-view {
  background-color: #48A269;
}

.btn-info-view:hover {
  background-color: #3F8E5C;
}

.main-cart-ico {
  height: 15px;
  padding-left: 20px;
}

.main-cart-ico:before {
  content: '';
  background: url('../image/icon_svg/main-cart.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: invert(64%) sepia(22%) saturate(2918%) hue-rotate(344deg) brightness(101%) contrast(101%);
}

.main-customer-ico {
  height: 15px;
  padding-left: 20px;
}

.main-customer-ico:before {
  content: '';
  background: url('../image/icon_svg/main-customer.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: invert(64%) sepia(22%) saturate(2918%) hue-rotate(344deg) brightness(101%) contrast(101%);
}

.main-my-ico {
  height: 15px;
  padding-left: 20px;
  padding-right: 5px;
}

.main-my-ico:before {
  content: '';
  background: url('../image/icon_svg/main-my.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: invert(64%) sepia(22%) saturate(2918%) hue-rotate(344deg) brightness(101%) contrast(101%);
}

.main-phone-ico {
  height: 15px;
  padding-left: 20px;
}

.main-phone-ico:before {
  content: '';
  background: url('../image/icon_svg/main-phone.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: invert(64%) sepia(22%) saturate(2918%) hue-rotate(344deg) brightness(101%) contrast(101%);
}

.main-top-ico {
  height: 5px;
  padding-left: 20px;
}

.main-top-ico:before {
  content: '';
  background: url('/image/icon_svg/main-top.svg');
  background-size: cover;
  position: absolute;
  width: 45px;
  height: 45px;
  margin-left: -27px;
  filter: invert(69%) sepia(10%) saturate(17%) hue-rotate(323deg) brightness(92%) contrast(88%);
}

#topline {
  border-top: solid #000000 0px;
  width: 100%;
}

.main-cart-down {
  content: '';
  background: url('/image/icon_svg/main-cart-down.svg');
  background-size: cover;
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -26px;
  filter: invert(37%) sepia(38%) saturate(3310%) hue-rotate(332deg) brightness(99%) contrast(91%);
}

.main-cart-up {
  content: '';
  background: url('/image/icon_svg/main-cart-up.svg');
  background-size: cover;
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -26px;
  filter: invert(37%) sepia(38%) saturate(3310%) hue-rotate(332deg) brightness(99%) contrast(91%);
}

.main-cart-del {
  content: '';
  background: url('/image/icon_svg/main-cart-del.svg');
  background-size: cover;
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -26px;
  filter: invert(37%) sepia(38%) saturate(3310%) hue-rotate(332deg) brightness(99%) contrast(91%);
}

.main-cart-check {
  content: '';
  background: url('/image/icon_svg/main-cart-check.svg');
  background-size: cover;
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: -26px;
  filter: invert(37%) sepia(38%) saturate(3310%) hue-rotate(332deg) brightness(99%) contrast(91%);
}

/* menu */
.navbar {
  position: relative;
  min-height: 40px;
  margin-bottom: 20px;
  /* border: 1px solid transparent; */
  background-color: #ffffff;
  border-radius: 0px;
}

#common-home {
  overflow: hidden;
}

/* 首頁模組標題置中 */
#common-home h3 {
  text-align: center;
}

/* 當有側欄時使用 flex 佈局 */
.category-main-row:has(#column-left) {
  display: flex;
}

#column-left {
  min-width: 240px;
  flex-shrink: 0;
}

/* 有側欄時，content 使用 flex: 1 */
.category-main-row:has(#column-left) #content {
  flex: 1;
}

/* 首頁模組父元素寬度 */
#module-latest,
#module-special {
  width: 100%;
  display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 8px;
}

/* 首頁模組輪播 */
#common-home .module-carousel-wrapper {
  position: relative;
  padding: 16px 24px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: white;
}

#common-home .module-view-all {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  color: #FF8A00;
  text-decoration: none;
  transition: opacity 0.3s;
}

#common-home .module-view-all:hover {
  opacity: 0.8;
}

#common-home .module-view-all .view-all-icon {
  width: 20px;
  height: 20px;
  background-image: url('../image/icon_svg/arrow-primary.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#common-home .module-carousel-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  #common-home .module-carousel-wrapper {
    margin-left: -20px;
    margin-right: -20px;
  }
}



#common-home .module-carousel-prev,
#common-home .module-carousel-next {
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0px 0px 8px 0px #00000040;
  background-color: white;
  background-image: url('../image/icon_svg/arrow_forward_dark.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 10;
}

#common-home .module-carousel-prev {
  transform: scaleX(-1);
}

#common-home .module-carousel-prev:hover,
#common-home .module-carousel-next:hover {
  background-color: #FF8A00;
  background-image: url('../image/icon_svg/arrow_forward.svg');
  border-color: #FF8A00;
}

#common-home .module-carousel-prev:hover {
  transform: scaleX(-1);
}

#common-home .module-carousel-prev:disabled,
#common-home .module-carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#common-home .row.product-grid-container {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  /* justify-content: flex-start; */
  padding: 0;
  border: none;
}

#common-home .module-carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
}

#common-home .module-pagination-dot {
  width: 30px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: #D1D5DB;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

#common-home .module-pagination-dot.active {
  background: #FF8A00;
}

#common-home .module-pagination-dot:hover {
  background: #B8BCC4;
}

/* 單張顯示時隱藏導航 */
#common-home .module-carousel-wrapper.single-item .module-carousel-prev,
#common-home .module-carousel-wrapper.single-item .module-carousel-next,
#common-home .module-carousel-wrapper.single-item .module-carousel-pagination {
  display: none;
}

.list-inline {
  margin-bottom: 0;
}

.list-inline li {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.a2a_kit.a2a_kit_size_32.a2a_default_style {
  height: 32px;
  display: flex;
  align-items: center;
}

.a2a_kit .a2a_svg {
  height: 26px;
  line-height: 26px;
  width: 26px;
  background-color: #ff8a00 !important;
  border-radius: 100% !important;
  padding: 2px;
}

footer {
  cursor: default;
  padding: 0;
  margin-top: 0;
}

footer h5 {
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 1px solid #3c414f;
}

footer li {
  text-align: left;
}

.footer-box {
  overflow: hidden;
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 10px;
  padding-bottom: 10px;
}

.footer-right {
  width: calc(100% - 270px);
  margin: 0;
}

.footer-left {
  width: 270px;
  margin: 0;
  display: flex;
  justify-content: end;
}

@media (max-width: 1024px) {
  .footer-box {
    flex-direction: column;
    padding-bottom: 0;
  }

  .footer-right {
    width: 100%;
    padding-bottom: 10px;
  }

  .footer-left {
    width: 100%;
    /* padding-bottom: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #3b404d;
    padding: 10px 0;
  }
}

.navbar-header {
  margin: 0 !important;
}

.navbar .container {
  padding: 0;
}

#menu .navbar-collapse {
  padding: 0;
  margin: 0;
}

.product-thumb .button-group button:hover i {
  color: #fff;
}

footer li a {
  color: #fff;
  text-decoration: none !important;
}

footer li a:focus {
  color: #fff;
}

ul.share-box {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

ul.share-box li:not(:last-child) {
  padding-right: 20px;
}

ul.share-box li a {
  padding: 0 !important;
  /* color: #fff; */
  text-decoration: none;
}

ul.share-box li a:after {
  content: '';
}

ul.share-box li a span {
  padding-left: 5px;
}

.main-ig-ico {
  height: 15px;
  padding-left: 20px;
}

.main-ig-ico:before {
  content: '';
  background: url('../image/icon_svg/main-ig.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(1%) hue-rotate(259deg) brightness(101%) contrast(101%);
}

.main-fb-ico {
  height: 15px;
  padding-left: 20px;
}

.main-fb-ico:before {
  content: '';
  background: url('../image/icon_svg/main-fb.svg');
  background-size: cover;
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -20px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(1%) hue-rotate(259deg) brightness(101%) contrast(101%);
}

.swiper-viewport {
  border: 0 !important;
}

.swiper-slide img {
  width: 100%;
}

footer .copyright {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  .rwd-table thead {
    display: none;
  }

  .rwd-table,
  .rwd-table tbody,
  .rwd-table tr,
  .rwd-table td,
  .rwd-table tfoot {
    display: block;
    width: 100%;
  }

  .rwd-table tr {
    margin-bottom: 12px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
  }

  .rwd-table td {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
  }

  .rwd-table td:last-child {
    border-bottom: 0;
  }

  .rwd-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
  }

  .rwd-table .text-right,
  .rwd-table .text-center {
    text-align: left !important;
  }

  .rwd-table .btn {
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .rwd-table td.rwd-hide-on-mobile {
    display: none;
  }

  .rwd-table .td-product-name .product-name-ellipsis {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== Header Logo Size ===== */
#logo img {
  max-height: 104px;
  width: auto;
}

/* ===== Header Search Icon Dropdown ===== */
.header-search-inline {
  display: flex;
  align-items: center;
}

.header-search-form {
  display: flex;
  align-items: center;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.search-input {
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
  margin-left: 0px;
  transition: width 0.25s ease, opacity 0.2s ease;
  background: transparent;
  color: #fff;
}

.header-search-form:hover .search-input,
.header-search-form:focus-within .search-input {
  width: 160px;
  opacity: 1;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Header Inline Search Color ===== */

/* icon +「找商品」文字 */
.header-search-inline .search-trigger,
.header-search-inline .search-trigger i,
.header-search-inline .search-label {
  color: #000000;
  /* 👈 橘色，可微調 */
}

/* 輸入框文字 */
.header-search-inline .search-input {
  color: #ff8a00;
  border-bottom: 2px solid rgba(147, 147, 147, 0.7);
}

/* placeholder */
.header-search-inline .search-input::placeholder {
  color: rgba(147, 147, 147, 0.7);
}

/* hover / focus 時稍微亮一點 */
.header-search-inline .search-trigger:hover,
.header-search-inline .search-form:hover .search-trigger {
  color: #ffa733;
}

/* ===== Header Search Icon Color ===== */
.header-search-inline .search-trigger i.fa-search {
  color: #ff8a00;
  /* 橘色 */
}

/* 修正搜尋文字的垂直視覺位置 */
.header-search-inline .search-label {
  position: relative;
  top: 1px;
  /* 👈 可微調 1～2px */
}

/* ===== Header action text hide under 1199px ===== */
@media (max-width: 1199px) {

  /* 隱藏「找商品」文字，只留放大鏡 */
  .header-search-inline .search-label {
    display: none;
  }

  /* 同時收起 input，避免佔位 */
  .header-search-inline .search-input {
    width: 0 !important;
    opacity: 0 !important;
  }
}

/* ===== Step 2: Mobile Search Bar (toggle only) ===== */

/* 預設全部隱藏（桌機/手機） */
#mobile-search-bar {
  display: none;
}

/* 手機版樣式 */
@media (max-width: 1199px) {

  /* JS 打開時才顯示 */
  #mobile-search-bar.is-open {
    display: block;
    padding: 2px 8px;
    background: #fff;
  }

  /* 輸入框樣式 */
  .mobile-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ffa733;
    outline: none;
  }

  .mobile-search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
  }
}

/* ===== Top Nav: remove black line & add background ===== */
#top {
  background-color: #fff0db;
  /* 🎨 換成你要的底色 */
}

/* ===== Center main navigation menu ===== */
@media (min-width: 768px) {
  #menu .navbar-nav {
    float: none;
    /* 取消 Bootstrap 預設 left */
    display: flex;
    justify-content: center;
    /* ⭐ 關鍵：水平置中 */
    width: 100%;
  }
}

/* ===== Main menu add angle-down icon ===== */
@media (min-width: 768px) {
  #menu .navbar-nav>li>a::after {
    font-family: "FontAwesome";
    content: "\f107";
    margin-left: 6px;
    font-size: 12px;
    color: inherit;
    display: inline-block;
    position: relative;
    top: -2px;
    /* 👈 關鍵：微微往上 */
  }
}

/* 桌機主選單項目間距 */
@media (min-width: 768px) {
  #menu .navbar-nav {
    gap: 16px;
    /* 👈 你要的 16px */
  }
}

/* ===== Sticky Header 本體一定要有背景與高度 ===== */
#site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1115;
  background: #fff;
  /* 👈 白色背景一定要在這一層 */
}

/* ===== Logo shrink + move left on scroll ===== */
#site-header-sticky #logo {
  transition: all 0.3s ease;
}

#site-header-sticky #logo img {
  transition: transform 0.3s ease;
  transform-origin: left center;
}

/* scroll 後 logo 靠左 */
#site-header-sticky.is-scrolled #logo {
  text-align: left;
}

#site-header-sticky.is-scrolled #logo img {
  transform: scale(0.75);
  margin-left: 0;
}

/* 覆蓋 Bootstrap center-block */
#site-header-sticky.is-scrolled #logo img.center-block {
  display: inline-block;
}

/* ===== Scroll 後：LOGO 左、主選單右（桌機） ===== */
@media (min-width: 1200px) {

  /* header-main-row 改為橫排，但要有高度 */
  #site-header-sticky.is-scrolled .header-main-row {
    display: flex;
    align-items: center;
    min-height: 80px;
    /* ✅ 關鍵：防止白色區塊塌掉 */
  }

  /* LOGO 區 */
  #site-header-sticky.is-scrolled .header-main-row header {
    flex: 0 0 auto;
    margin-right: 32px;
  }

  /* navbar 一定要能撐寬 */
  #site-header-sticky.is-scrolled .header-main-row .navbar {
    flex: 1 1 auto;
    /* ❗改回可撐寬 */
    margin-top: 0;
  }

  /* 主選單靠右 */
  #site-header-sticky.is-scrolled .navbar-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

@media (min-width: 1200px) {

  /* ⭐ 關鍵：scroll 後，解除 header 內 container 的 max-width */
  #site-header-sticky.is-scrolled header .container {
    max-width: none !important;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  /* 讓 LOGO 區塊只吃內容寬 */
  #site-header-sticky.is-scrolled header {
    flex: 0 0 auto;
  }

  /* navbar 正常撐滿右側 */
  #site-header-sticky.is-scrolled .navbar {
    flex: 1 1 auto;
  }
}

@media (min-width: 1200px) {

  /* ⭐ 關鍵：建立一個左右對齊的「內容軌道」 */
  #site-header-sticky.is-scrolled .header-main-row {
    max-width: 1280px;
    /* 你想要的實際可視寬度 */
    margin: 0 auto;
    /* 整組置中 */
    padding: 0 24px;
    /* 左右安全距 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* ⭐ 左右貼邊 */
  }

  /* LOGO：靠左，不再被拉開 */
  #site-header-sticky.is-scrolled .header-main-row header {
    flex: 0 0 auto;
    margin-right: 0;
    /* ❌ 移除原本 32px */
  }

  /* 選單：靠右 */
  #site-header-sticky.is-scrolled .header-main-row .navbar {
    flex: 0 0 auto;
  }

  /* ul 本身不要再自己撐寬 */
  #site-header-sticky.is-scrolled .navbar-nav {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {

  /* 🔥 關鍵：解除 navbar 裡的 container 限制 */
  #site-header-sticky.is-scrolled .navbar>.container {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
  }

  /* navbar 本身靠右 */
  #site-header-sticky.is-scrolled .header-main-row .navbar {
    display: flex;
    justify-content: flex-end;
  }

  /* ul 不要再自己撐爆 */
  #site-header-sticky.is-scrolled .navbar-nav {
    width: auto;
    max-width: none;
  }
}

/* ===== Menu hover underline style (desktop) ===== */
@media (min-width: 768px) {

  #menu .nav>li>a {
    position: relative;
    background-color: transparent;
    border-radius: 0;
  }

  #menu .nav>li:hover>a,
  #menu .nav>li.open>a {
    background-color: transparent;
    color: #000;
  }

  #menu .nav>li>a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 80%;
    /* ✅ 關鍵 */
    margin-top: 2px;
    /* 與文字距離 */
    width: 0;
    height: 4px;
    background-color: #ff9b19;
    transition: width 0.2s ease;
  }

  #menu .nav>li:hover>a::after,
  #menu .nav>li.open>a::after {
    width: 100%;
  }
}

@media (min-width: 768px) {

  /* 只處理最後一個 dropdown，避免超出畫面 */
  #menu .nav>li.dropdown:last-child>.dropdown-menu {
    left: auto;
    right: 0;
  }

}

.mobile-fixed{
  display: none;
  background: #FFA033;
  width: 100%;
  padding: 8px 16px;
  z-index: 100;
  position: fixed;
  left: 0;
  bottom: 0;
  gap: 16px;
  justify-content: space-around;
}
@media (max-width: 768px){
  .mobile-fixed{
    display:flex;
  }
}
@media (max-width:768px){
  body{
    padding-bottom:48px;
  }
}

.mobile-fixed img{width: 32px;height: 32px; }


.mobile-fixed-item{
  cursor: pointer;
  }



#product-category #content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 8px;
}

#product-category h2 {
  margin: unset;
  font-weight: 400;
  color: #374151;
}

.option-h3 {
  font-weight: 400;
  margin: 24px 0 8px 0; 
  color: #374151;
}

/* Category subcategories */
.category-subcategories {
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  font-size: 14px;
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.filter-wrapper {
margin-left: unset;
height: 50px;
padding:0 24px;
background: #F3F4F6;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
}

.filter-wrapper .form-group {
  margin: 0;
}

.filter-wrapper .filter-items {
  margin-left: auto;
  align-items: center;
  display: flex;
  align-items: center;
  gap: 24px;
}
/* 自訂下拉選單組件 */
.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-wrap {
  position: relative;
}

.custom-select {
  display: inline-flex;
  height: 30px;
  min-width: 140px;
  position: relative;
}

.custom-select__trigger {
  display: flex;
  align-items: stretch;
  height: 30px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  background: white;
}

.custom-select__label {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 8px;
  background: #E5E7EB;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}

.custom-select__value-wrap {
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 24px;
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.custom-select__trigger:hover .custom-select__value-wrap {
  border-color: #FF8A00;
}

.custom-select__value {
  flex: 1;
  font-size: 12px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.custom-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  background: white;

  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius:2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select--open .custom-select__dropdown {
  display: block;
}

.custom-select__option {
  height: 30px;
  display: flex;
  align-items: center;
  padding:8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.custom-select__option:hover {
  background: #F3F4F6;
}

.category-subcategories__label {
  width: 80px;
  color: #374151;
  background: #E5E7EB;

  display: flex;
  flex: 0 0 80px;
  align-items: center;
  justify-content: center;
}

.category-subcategories__list {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 16px;
}

.category-subcategories__item {
  height: fit-content;
  background: white;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s;
}

.category-subcategories__item:hover {
  color: #FF8A00;
}

/* View toggle buttons */
.view-toggle-group {
  border: none;
  background: transparent;
}

.view-toggle-group .view-toggle-btn {
  background: transparent;
  border: none;
  padding: 8px;
  margin: 0;
}

.view-toggle-group .view-toggle-btn:focus,
.view-toggle-group .view-toggle-btn:active,
.view-toggle-group .view-toggle-btn:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
}

.view-toggle-groupbtn-default{
  box-shadow:none;
}

.view-toggle-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.3s;
}

/* Category product grid */
#product-category .row.product-grid-container {
/* #common-home .row.product-grid-container { */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px;
}

.product-layout {
  padding: 16px;
  width: 224px;
  border-radius: 4px;
  background-color: white;
}

.product-layout.product-grid:hover,
.product-layout.product-list:hover {
  background-color: #FFF4E6;
}

.product-layout.product-grid .product-thumb {
  transition: background-color 0.3s;
  width: 100%;
}


.product-layout.product-grid .product-image-wrapper {
  position: relative;
  height: 212px;
}

.product-layout.product-grid .category-product-swiper {
  width: 100%;
  height: 100%;
}

.product-layout.product-grid .category-product-swiper .swiper-slide {
  width: 192px;
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-layout.product-grid .category-product-swiper .swiper-slide img,
.product-layout.product-grid .category-product-swiper .swiper-slide img.img-responsive {
  width: 192px;
  height: 192px;
  object-fit: cover;
}

.product-layout.product-grid .category-product-swiper .swiper-pagination {
  bottom: 0;
  z-index: 5;
  display: block;
}

.product-layout.product-grid .category-product-swiper .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.product-layout.product-grid .category-product-swiper .swiper-pagination-bullet-active {
  background: #FF8A00;
}

.product-layout.product-grid .category-product-swiper .swiper-button-prev,
.product-layout.product-grid .category-product-swiper .swiper-button-next,
.product-layout.product-list .category-product-swiper .swiper-button-prev,
.product-layout.product-list .category-product-swiper .swiper-button-next {
  opacity: 0;
  transition: opacity 0.3s;
  width: 24px;
  height: 40px;
  z-index: 10;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.product-layout.product-grid .category-product-swiper .swiper-button-prev,
.product-layout.product-list .category-product-swiper .swiper-button-prev {
  left: 0;
}

.product-layout.product-grid .category-product-swiper .swiper-button-next,
.product-layout.product-list .category-product-swiper .swiper-button-next {
  right: 0;
}

.product-layout.product-grid .category-product-swiper .swiper-button-prev .swiper-navigation-icon,
.product-layout.product-grid .category-product-swiper .swiper-button-next .swiper-navigation-icon,
.product-layout.product-list .category-product-swiper .swiper-button-prev .swiper-navigation-icon,
.product-layout.product-list .category-product-swiper .swiper-button-next .swiper-navigation-icon {
  display: none;
}

.product-layout.product-grid .product-gallery-main .swiper-button-prev {
  border-radius: 0 4px 4px 0;
}

.product-layout.product-grid .category-product-swiper .swiper-button-next,
.product-layout.product-list .category-product-swiper .swiper-button-next {
  /* border-radius: 4px 0 0 4px; */
/* } */

/* .product-layout.product-grid .category-product-swiper .swiper-button-prev, */
/* .product-layout.product-list .category-product-swiper .swiper-button-prev { */
  border-radius: 4px 0 0 4px;
}

.product-layout.product-grid .product-image-wrapper:hover .swiper-button-prev,
.product-layout.product-grid .product-image-wrapper:hover .swiper-button-next,
.product-layout.product-list .product-image-wrapper:hover .category-product-swiper .swiper-button-prev,
.product-layout.product-list .product-image-wrapper:hover .category-product-swiper .swiper-button-next,
.product-layout.product-grid .product-image-wrapper:hover .category-product-swiper .swiper-button-prev,
.product-layout.product-grid .product-image-wrapper:hover .category-product-swiper .swiper-button-next {
  opacity: 1;
}

#product-category .product-layout.product-grid .category-product-swiper .swiper-button-prev::after,
#product-category .product-layout.product-grid .category-product-swiper .swiper-button-next::after,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-prev::after,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-next::after,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-prev::after,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-next::after {
  content: '' !important;
  width: 24px;
  height: 24px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-family: unset !important;
}

#product-category .product-layout.product-grid .category-product-swiper .swiper-button-prev::before,
#product-category .product-layout.product-grid .category-product-swiper .swiper-button-next::before,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-prev::before,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-next::before,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-prev::before,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-next::before {
  content: none !important;
}

#product-category .product-layout.product-grid .category-product-swiper .swiper-button-next::after,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-next::after,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-next::after {
  background-image: url('../image/icon_svg/arrow_forward.svg');
}

#product-category .product-layout.product-grid .category-product-swiper .swiper-button-prev::after,
#product-category .product-layout.product-list .category-product-swiper .swiper-button-prev::after,
#common-home .product-layout.product-grid .category-product-swiper .swiper-button-prev::after {
  background-image: url('../image/icon_svg/arrow_forward.svg');
  transform: scaleX(-1);
}

.product-layout.product-grid .product-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.product-layout.product-grid .product-image-wrapper:hover .product-actions,
.product-layout.product-grid .image:hover .product-actions {
  opacity: 1;
}

.product-layout.product-grid .action-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-layout.product-grid .action-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.product-layout.product-grid .action-btn:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.product-layout.product-grid .action-icon {
  width: 24px;
  height: 24px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.product-layout.product-grid .action-cart .action-icon {
  background-image: url('../image/icon_svg/cart-icon.svg');
}

.product-layout.product-grid .action-wishlist .action-icon {
  background-image: url('../image/icon_svg/heart-icon.svg');
}

@media (max-width: 767px) {
.mobile-fixed{display: flex;}

  .category-subcategories {
    margin: 16px 0;
  }

  .filter-wrapper{
    margin-left: -15px;
    padding:0 16px;
  }

  #product-category .row.product-grid-container,
  #common-home .row.product-grid-container {
    padding: 16px;
    gap: 10px;
    background-color: #F3F4F6;
  }
 
  @media (max-width: 576px) {
    #common-home .module-carousel-wrapper {
      padding: 16px 0;
    }
  
    #common-home .row.product-grid-container {
      flex-wrap: wrap !important;
      justify-content: center;
    }
    
    #product-category #content {
      padding: 0;
    }

    #product-category #content .category-info-row {
width: 100%;
    }

    /* 移除 #content 第一個 row 第一個 div 的左右 padding */
    #product-category #content .category-info-row .category-info-first {
      padding-left: 0;
      padding-right: 0;
    }
  }

  @media (max-width: 414px) {
    .filter-wrapper .filter-items {
      margin-left: unset;
justify-content: space-between;
      gap: unset;
    }


    #common-home .module-carousel-wrapper {
      width: 100vw;
    }

    #product-category .row.product-grid-container,
    #common-home .row.product-grid-container {
      gap: 10px 0 ;
      padding: 16px 0 ; 
      margin: unset;
    }
    #common-home .product-layout.product-grid,
    #product-category .product-layout.product-grid{
max-width: 170px !important;
padding: 8px 0 !important;
    }
  }


  .view-toggle-group {
    display: none;
  }

  .product-layout.product-grid {
    padding: 8px;
    flex: 0 0 180px;
  }

  .product-layout.product-grid .product-image-wrapper {
    width: 164px;
    height: 184px;
  }

  .product-layout.product-grid .category-product-swiper {
    width: 164px;
    height: 184px;
  }

  .product-layout.product-grid .category-product-swiper .swiper-wrapper {
    width: 164px;
    height: 164px;
  }

  .product-layout.product-grid .category-product-swiper .swiper-slide {
    width: 164px;
    height: 164px;
  }

  .product-layout.product-grid .category-product-swiper .swiper-slide img,
  .product-layout.product-grid .category-product-swiper .swiper-slide img.img-responsive {
    width: 164px !important;
    height: 164px !important;
    max-width: 164px !important;
    min-width: 164px !important;
  }
}

.product-highlights{
      border-left: unset;
      padding-left: 0;
}

/* Category product list */
#product-category .row.product-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px;
}

#product-category .row.product-list-container:has(.product-list) {
  gap: 16px;
}

.product-layout.product-list {
  width: 100%;
  padding: 24px;
  background-color: white;
  border-radius: 4px;
  border-bottom: 1px dashed #E5E7EB;
}

.product-layout.product-list .product-actions {
  display: none;
}

.product-layout.product-list .product-thumb {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-wrap: break-word;
}




.product-layout.product-list .product-image-wrapper {
  flex: 0 0 auto;
}

.product-layout.product-list .product-content {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.product-layout.product-list .product-content a {
  color: #374151;

}


.product-layout:not(.product-list) .product-list-actions {
  display: none;
}

.product-layout.product-list .product-list-actions {
  display: flex;
  gap: 16px;
  padding: 8px 16px;
  border-radius: 4px;
}

.product-layout.product-list .list-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.product-layout.product-list .list-btn-cart {
  background: #FF8A00;
  color: white;
}

.product-layout.product-list .list-btn-cart:hover {
  background: #e67a00;
}

.product-layout.product-list .list-btn-wishlist {
  background: white;
  color: #FF8A00;
  border: 1px solid #FF8A00;
}

.product-layout.product-list .list-btn-wishlist:hover {
  background: #FFE8CC;
  color: #E07A00;
}

.product-layout.product-list .list-btn-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: filter 0.3s;
}

.product-layout.product-list .list-btn-wishlist .list-btn-icon {
  filter: brightness(0) saturate(100%) invert(58%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(1) contrast(1);
}

.product-layout.product-list .list-btn-wishlist:hover .list-btn-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(1deg) brightness(95%) contrast(101%);
}

/* Product page highlights */
.product-highlights {
  border-left: 3px solid #FF8A00;
  padding-left: 16px;
  margin: 12px 0;
  list-style-type: disc;
}

.product-highlights li {
  font-size: 15px;
  line-height: 22px;
  color: #374151;
  margin-left: 20px;
}

.manufacturer-info{
  display: flex;
    justify-content: space-between;
}
/* ===== Override Bootstrap primary button color ===== */

/* 一般狀態 */
.btn-primary {
  background-color: #ff9b19;
  border-color: #ff9b19;
  color: #fff;
}

/* hover / focus */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #ff8a00;
  border-color: #ff8a00;
  color: #fff;
}

/* disabled */
.btn-primary.disabled,
.btn-primary[disabled] {
  background-color: #ffb45c;
  border-color: #ffb45c;
}
/* ===== Social Login Buttons (Google / LINE) ===== */

/* 共用按鈕底色 */
.d-social-login__button {
  background-color: #ff9b19 !important;
  border-color: #ff9b19 !important;
  color: #ffffff !important;
}

/* hover / focus */
.d-social-login__button:hover,
.d-social-login__button:focus {
  background-color: #ff8a00 !important;
  border-color: #ff8a00 !important;
  color: #ffffff !important;
}

/* 文字（span label） */
.d-social-login__button_label {
  color: #ffffff !important;
}

/* icon 也維持白色（保險用） */
.d-social-login__button_icon {
  color: #ffffff !important;
}
/* ===== Button icons color fix ===== */

/* 橘色按鈕（加入購物車）裡的 icon */
.btn-primary .fa,
.btn-primary i {
  color: #ffffff !important;
}

/* 紅色按鈕（刪除）裡的 icon */
.btn-danger .fa,
.btn-danger i {
  color: #ffffff !important;
}
/* ===== Primary button orange theme ===== */

/* 正常狀態 */
.btn-primary {
  background-color: #ff9b19;
  border-color: #ff9b19;
  color: #ffffff;
}

/* hover / focus */
.btn-primary:hover,
.btn-primary:focus {
  background-color: #ff8a00;
  border-color: #ff8a00;
  color: #ffffff;
}

/* active / 點下去 */
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: #e67e00;
  border-color: #e67e00;
  color: #ffffff;
}

/* 移除藍色外框（超重要） */
.btn-primary:focus,
.btn-primary:active:focus {
  outline: none;
  box-shadow: none;
}
/* === Brand primary button override === */
.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: #ff9b19;
  border-color: #ff9b19;
}

.btn-primary:hover {
  color: #fff;
  background-color: #ff8a00; /* hover 深一點 */
  border-color: #ff8a00;
}

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  color: #fff;
  background-color: #e67e00; /* 按下更深 */
  border-color: #e67e00;
}

.btn-primary:active:focus,
.btn-primary.active:focus {
  color: #fff;
  background-color: #d86f00;
  border-color: #d86f00;
}

/* 保險：移除 bootstrap 的陰影 */
.btn-primary:active,
.btn-primary.active {
  box-shadow: none;
}
/* 精確定位 search-trigger 按鈕並移除內距 */
button.search-trigger {
    padding: 0 !important;
}
/* 修改按鈕懸停時的文字顏色與背景顏色 */
a.btn.btn-default:hover,
a.btn.btn-default:focus {
    color: #B36200 !important;      /* 懸停時的文字顏色 */
    background-color: #FFD199 !important; /* 懸停時的背景顏色 */
    border-color: #FFD199 !important;     /* 建議連邊框顏色一併修改，視覺較統一 */
}
/* Fix long URL overflow on mobile */
#tab-description,
#tab-description p,
#tab-description strong,
#tab-description a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 768px) {

    /* 整個 header 回到正常 */
    #site-header-sticky {
        position: relative !important;
    }

    /* 直接把商品分類固定 */
    .header-main-row .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
    }

    /* 下面內容補高度避免被蓋住 */
    body {
        padding-top: 50px; /* 視 navbar 高度調整 */
    }

}
@media (max-width: 768px) {

    #site-header-sticky {
        position: relative !important;
    }

    /* 淺橘色列最高 */
    #top {
        position: relative;
        z-index: 10000;
    }

    /* LOGO 在第二層 */
    .header-main-row {
        position: relative;
        z-index: 9000;
    }

    /* 商品分類固定，但層級最低 */
    .header-main-row .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 8000;
        background: #fff;
    }

    body {
        padding-top: 50px;
    }

}
#account-transaction #funds_transfer_form {
  margin-bottom: 24px;
}
/* 讓按鈕並排 */
td.text-right {
  white-space: nowrap;
}

td.text-right .btn {
  display: inline-block;
  margin-right: 6px;
}
@media (max-width: 767px) {
  #product-category #content {
    padding-left: 16px;
    padding-right: 16px;
  }

  #product-category .category-info-row {
    margin-left: 0;
    margin-right: 0;
  }

  #product-category .category-info-first {
    padding: 0;
  }

  #product-category .category-info-first .image img {
    width: 100%;
    height: auto;
    display: block;
  }
}
/* 針對螢幕寬度 300px 到 341px 的特別修正 */
@media (min-width: 300px) and (max-width: 341px) {
  #common-home .product-layout.product-grid,
  #product-category .product-layout.product-grid {
    /* 強制設定寬度為容器的一半，減去間距 */
    flex: 0 0 calc(50% - 5px) !important; 
    max-width: calc(50% - 5px) !important;
    padding: 5px !important;
    margin: 0 !important;
  }

  /* 確保圖片能隨容器縮小，不溢出 */
  .product-layout.product-grid .product-image-wrapper,
  .product-layout.product-grid .category-product-swiper,
  .product-layout.product-grid .category-product-swiper .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* 縮小文字大小避免排版崩壞 */
  .product-thumb .caption h4 {
    font-size: 13px !important;
  }
}