:root {
  --primary-green: #00A86B;
  --light-green: #E8F5F0;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #EEEEEE;
  --white: #FFFFFF;
}
.second-title{
  border-bottom: 0;
  font-size: 30px;
  text-align: left;
  color: #e9973f;
  font-weight: 600;
}
/* 頂部Banner樣式 */
.top-banner {
  background-color:#1B2C6C;
  padding: 30px 30px;
  margin-bottom: 30px ;
  background-size: cover;
  background-position: center;
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-logo img {
  max-height: 80px;
  border-radius: 8px;
}

.brand-liked{
  font-size:16px;
  color:#f49d41;
  margin-top: 8px;
}
.brand-liked .fa-star{
  font-size:20px;
  color:#f49d41; 
}
.contact-btn .btn-extra {
  margin-top: 20px;
  margin-right: 8px;
  display: inline-block;
  background-color: #f49d41;
}

.brand-info {
  flex: 1;
  color: var(--white);
}
.brand-info .company_name {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 600;
}
.brand-info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.contact-btn .btn-contact {
  background-color: #FF940A;
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-btn .btn-contact:hover {
  background-color: #dd0017;
}
.contact-btn .btn-contact a{
  color: var(--white); 
}
/* 主容器間距 */
.main-container {
  padding-bottom: 50px;
}

/* 麵包屑樣式 */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
}
.breadcrumb li a {
  color: var(--text-light);
}
.breadcrumb li.active {
  color: var(--primary-green);
}

/* 搜索 */
.search-box {
  position: relative;
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}
.search-box .form-control {
  padding-left: 35px;
  border: none;
  border-bottom: 1px solid #2D2B2B;
  border-radius: 0;
  box-shadow: none;
  min-width: 260px;
}
.search-box .form-control:focus {
  border-color: var(--primary-green);
  box-shadow: none;
}

/* 排序欄樣式 */
.sort-bar {
  margin-bottom: 40px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.view-toggle .btn {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-light);
}
.view-toggle .btn.active {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}
#input-sort, #input-limit, #input-category {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  height: 34px;
  padding: 6px 12px;
  min-width: 140px;
}

/* 筛选栏电脑+平板：一行左右布局 */
.product-filter2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.product-filter2 .display {
  flex: 1;
  min-width: 260px;
}
.product-filter2 .limit,
.product-filter2 .sort,
.product-filter2 .product-category {
  flex-shrink: 0;
}

.product-grid-item {
margin: 20px 0px !important;
}
/* 商品網格卡片樣式 (核心) */
.product-grid {
  /*margin: 0 -10px;*/
}
.product-item {
  padding: 10px;
  margin-bottom: 30px;
}
.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.product-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
/* max-height: 100%;
  max-width: 100%;
  object-fit: cover;*/
}
.product-info {
  padding: 15px;
}
.product-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
}
.product-name a {
  color: var(--text-dark);
  text-decoration: none;
}
.product-name a:hover {
  color: #e99e0e;
}
.btn-buy {
  display: inline-block;
  background-color:#fdae18;
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  float: right;
}
.btn-buy:hover {
  background-color: #007A50;
  color: var(--white);
  text-decoration: none;
}

/* 分頁樣式 */
.pagination-bar {
  margin-top: 20px;
}
.pagination > li > a, .pagination > li > span {
  color: var(--primary-green);
  border: 1px solid var(--border-color);
}
.pagination > .active > a, .pagination > .active > span {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* 列表視圖樣式 (切換用) */
.product-list .product-item {
  width: 100%;
}
.product-list .product-card {
  display: flex;
  height: auto;
}
.product-list .product-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}
.product-list .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* swiper最新活動 */
.swiper-activity {
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
  padding-top: 10px;
}
.swiper-activity .swiper-slide {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 12px 10px 20px 10px;
  margin: 10px 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 點點下方顯示 */
.swiper-activity .swiper-pagination {
  position: static !important;
  margin: 12px 0 0 0;
  text-align: center;
}

.swiper-activity .swiper-pagination .swiper-pagination-bullet {
  background: #e9973f !important;
  opacity: 1;
}

.swiper-activity .swiper-pagination .swiper-pagination-bullet-active {
  background: #1B2C6C !important;
}

/* 左右箭頭樣式 */
.swiper-activity .swiper-button-next,
.swiper-activity .swiper-button-prev {
  color:#101c4b;
  top: 40%;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.swiper-activity .swiper-button-next:hover,
.swiper-activity .swiper-button-prev:hover {
  background: #e9973f;
  color: #fff;
}
.swiper-activity .swiper-button-next:after,
.swiper-activity .swiper-button-prev:after {
  font-size: 20px;
}

/* 移除原有的顯示第幾個活動樣式 */
.swiper-activity .swiper-pagination-index {
  display: none !important;
}


@media (max-width: 991px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .sort-bar .text-right {
    text-align: left !important;
    margin-top: 10px;
  }
 /* .product-image {
    height: 220px;
  }*/
}
@media (max-width: 767px) {
  .product-item {
    width: 50%;
  }
 /* .product-image {
    height: 240px;
  }*/
  .swiper-activity .swiper-slide {
    padding: 8px 2px 16px 2px;
  }
}
@media (max-width: 575px) {
  /* 手機端垂直一行一個 */
  .product-filter2 {
    flex-direction: column;
    gap: 12px;
  }
  .product-filter2 .display,
  .product-filter2 .product-category,
  .product-filter2 .sort,
  .product-filter2 .limit {
    width: 94%;
  }
  .product-filter2 .search-box .form-control,
  .product-filter2 #input-category,
  .product-filter2 #input-sort,
  .product-filter2 #input-limit {
    width: 94%;
    margin: 0;
  }

  .product-item {
    width: 100%;
  }
  .top-banner {
    padding: 20px 0;
  }
  .brand-info .company_name {
    font-size: 16px;
  }
  .brand-info p {
    font-size: 14px;
    padding: 0 5px;
  }
  .swiper-activity .swiper-slide {
    padding: 4px 0 12px 0;
  }
}
html, body {
  overflow-x: hidden !important;
  width: 100% !important; 
}
.breadcrumb {
  display: none !important;
}
@media only screen and (max-width: 760px) {
  .product-grid, #content .box-product {
    margin: 0 5px !important;
    margin-right:-6px!important;
  }
}