:root {
  --color-primary: #5C743D;
  --color-highlight: #99CC66;
  --color-accent: #993300;
  --color-bg-light: #D5EDB3;
  --color-bg-main: #FFFEF6;
  --color-footer-bg: #8BBD86;
  --color-link-blue: #0000FF;
  --color-link-blue-hover: #FF0000;
  --color-marquee-border: #5C743D;
  --color-marquee-bg: #D5EDB3;           /* 跟 HTML 第一列背景色一致 */
  --color-marquee-text: #993300;
}

/* 通用跑馬燈外框 */
.marquee-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-marquee-bg);
  padding: 0.25rem 0.5rem;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

/* 跑馬燈文字 */
.marquee-text {
  font-weight: bold;
  font-size: 0.875rem; /* text-sm */
  color: var(--color-marquee-text);
  white-space: nowrap;
}

/* 抖動動畫 */
.marquee-bounce {
  animation: bounce-text 1s infinite alternate ease-in-out;
}

/* 滑動動畫 */
.marquee-slide {
  animation: slide-left 30s linear infinite;
}

@keyframes bounce-text {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

@keyframes slide-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Footer 樣式 */
footer.custom-footer {
  font-family: 'Microsoft JhengHei', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  color: black;
  background-color: var(--color-footer-bg);
  padding: 1.5rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  text-align: center;
}

.custom-footer a {
  color: var(--color-link-blue);
  font-weight: 400;
  text-decoration: none;
}
.custom-footer a:hover {
  color: var(--color-link-blue-hover);
  text-decoration: underline;
}

/* Footer 排版 */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}
.footer-grid > div:not(:last-child) {
  margin-bottom: 1rem;
}

/* 響應式調整 */
@media (max-width: 767px) {
  .footer-grid > div {
    margin-bottom: 1rem;
  }
}
@media (min-width: 768px) {
  .footer-grid > div {
    text-align: left;
  }
}

/* 麵包屑第三層文字黑色 */
.breadcrumb-third {
  color: #000000 !important;
}

/* ✅ 上框線：白色虛線上方加一條深綠實線 */
.with-double-top-border {
  position: relative;
}

.with-double-top-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #5C743D; /* ✅ 深綠色 */
  z-index: 50; /* ✅ 拉高層級 */
  pointer-events: none;
}

/* ✅ 商品描述中的小標題格式 */
.desc-heading {
  margin-top: 0.6em;
  margin-bottom: 0.4em;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  line-height: 1.5;
}



.line-clamp-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-7 {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
