/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Noto Sans TC", sans-serif;
    background-color: #fcfcfa;
    color: #333;
    line-height: 1.8;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #4a7c59; }

/* ===== Header ===== */
header {
    background-color: #385a4c;
    color: #fff;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.logo a {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.05em;
}

/* ===== Nav & Cart ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-list li a {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 4px;
}
.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}
.nav-list li a:hover::after { width: 100%; }
.cart-btn {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.cart-icon { font-size: 1.2rem; }
.cart-count { margin-left: 6px; font-weight: bold; }

/* ===== Hamburger Menu ===== */
.nav-toggle,
.nav-toggle-label { display: none; }

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .nav-toggle,
    .nav-toggle-label { display: block; }
    .nav-toggle-label {
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
        margin-left: auto;
        margin-right: 10px;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background-color: #fff;
        height: 3px;
        width: 100%;
        position: absolute;
        transition: all 0.3s;
    }
    .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
    .nav-toggle-label span::before { content: ''; top: -8px; }
    .nav-toggle-label span::after { content: ''; top: 8px; }
    .nav-toggle:checked + .nav-toggle-label span { background-color: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked + .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }

    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: #385a4c;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .nav-toggle:checked ~ .nav-menu { display: flex; }
    .nav-list { flex-direction: column; gap: 24px; padding: 1rem 0; }
    .nav-list li a { font-size: 1.2rem; padding: 10px 0; }
    .cart-btn { display: none; }
    .nav-list::after {
        content: "\f07a 購物車";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: block;
        font-size: 1.3rem;
        color: #fff;
        padding-top: 20px;
    }
}

/* ===== Banner ===== */
.banner {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), url('../images/banner18.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}
/* 文字層 */
.story-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 2;
}

.story {
    position: absolute;
    width: 100%;
    white-space: pre-line;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #fff;
    box-sizing: border-box;
    text-align: left;
}

/* ===== Sections ===== */
.section { padding: 4rem 1rem; width: 100%; margin: auto; }
.section h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: #385a4c; }

/* ===== Categories ===== */
.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    list-style: none;
    margin-bottom: 70px;
}
.cat-list li {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 20px;
    transition: all 0.3s;
    font-weight: 500;
}
.cat-list li:hover {
    background: #e9f3ee;
    border-color: #4a7c59;
    color: #4a7c59;
}

/* ===== Products ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
     max-width: 1600px;
       max-width: 1600px;
         margin:0 2rem ;
    box-sizing: border-box;
}
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.product-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.product-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.product-card h3 { font-size: 1.1rem; margin: 10px; }
.product-card p {
    color: #4a7c59;
    font-weight: bold;
    margin: 0 10px 15px;
}
.bannercenten{
    width:100%;
}
.bannercenten img{
    width:100%;
}
.bannercenten1{
    max-width: 1200px;
    width:100%;
     margin: 0 auto;
}
.bannercenten1 img{
    
    width:100%;
}
/* ===== Footer ===== */
footer {
    background: #16810c;
    color: #ccc;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}
/* 版面基礎設定 */
body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
}

/* Header 整體 */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 外框 */
.wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
}

/* Logo */
.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #2c3e50;
  text-decoration: none;
}

/* 漢堡選單 (手機用) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  background: #333;
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  bottom: -8px;
}

/* 導覽列 (電腦版) */
.nav-menu {
  flex-grow: 1;
  text-align: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.nav-list li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: #8e5c00;
}

/* 購物車 */
.cart-btn a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -15px;
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
   width: 20px;
     height: 20px; display: flex;
    align-items: center;
    justify-content: center;
}

/* RWD 手機版 */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li a {
    padding: 1rem;
    display: block;
  }

  .nav-toggle:checked + .nav-toggle-label + .nav-menu {
    display: flex;
  }
}
.toptitle{
    width:100%;
    height: 50px;
     background: #16810c;
      display: flex;
     justify-content: center;
     align-items: center;
     color:#ffffff;
}
