.hero__grid--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: end;
}

.hero__grid--single .hero__copy {
  width: 100%;
}

.homepage-carousel {
  padding: 24px 0 0;
  background: #fff;
}

.homepage-carousel__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  padding: 0;
  border-radius: 22px;
  background: #edf5ee;
  box-shadow: 0 16px 36px rgba(33, 77, 49, .12);
}

.homepage-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.homepage-carousel__slide.is-active { opacity: 1; }
.homepage-carousel__slide a { display: block; width: 100%; height: 100%; }
.homepage-carousel__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.homepage-carousel__dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 7px;
}

.homepage-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

.homepage-carousel__dots button.is-active { background: #69d34b; }

.category-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-category-grid .category-card h3 { font-size: 17px; white-space: nowrap; }
.site-header .brand-name-mobile { display: none; }

@media (max-width: 360px) {
  .site-header .brand-name-full { display: none; }
  .site-header .brand-name-mobile { display: inline; }
}

.products-filter-toggle { display: none; }

.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid #dce8dd;
  border-radius: 12px;
  background: #fafdfa;
}

.product-trust-strip li {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #315a3d;
  font-size: 12px;
  font-weight: 750;
}

/* 優惠行單行顯示：縮小字體，不可拆成多行 */
.product-trust-strip li.product-trust-strip--single {
  grid-column: 1 / -1;
  font-size: 11.5px;
  white-space: nowrap;
}

.product-trust-strip img { width: 17px; height: 17px; }
@media (min-width: 1000px) {
  .product-detail__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 38px; }
}
.product-public-price em { color: #315a3d; font-size: 12px; font-style: normal; font-weight: 800; }
.product-reviews { margin: 22px 0; }
.product-reviews__heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.product-reviews__heading h2 { margin: 3px 0 0; font-size: 22px; }
.product-reviews__heading .button { width: auto; padding: 9px 13px; font-size: 12px; }
.product-reviews__list { display: grid; gap: 12px; }
.product-reviews__empty { margin: 0; padding: 12px 16px; border: 1px solid #dce8dd; border-radius: 12px; background: #fbfdf9; color: #315a3d; font-size: 13px; font-weight: 700; }
.product-reviews__empty summary { cursor: pointer; }
.product-reviews__empty p { margin: 10px 0 0; color: #718077; font-weight: 600; }
.product-review-card { padding: 16px; border: 1px solid #dce8dd; border-radius: 14px; background: #fbfdf9; }
.product-review-card header { display: flex; gap: 10px; align-items: center; justify-content: space-between; color: #315a3d; font-size: 12px; }
.product-review-card time { color: #718077; font-weight: 650; }
.product-review-card > p:last-child { margin: 8px 0 0; white-space: pre-line; }
.product-review-card > img { width: min(100%, 260px); max-height: 260px; margin-top: 10px; border-radius: 10px; object-fit: cover; }
.product-review-stars { margin: 8px 0 0; color: #e69a16; font-size: 20px; letter-spacing: 2px; }
.product-reviews__empty { margin: 0; padding: 18px; color: #657269; border: 1px dashed #cbdaca; border-radius: 12px; background: #fafdfa; }
.product-review-form-wrap { max-width: 760px; }
.product-review-form-card { padding: clamp(22px, 4vw, 42px); border: 1px solid #dce8dd; border-radius: 22px; background: #fff; box-shadow: 0 15px 36px rgba(33, 77, 49, .1); }
.product-review-form-card h1 { margin: 5px 0 10px; }
.product-review-form-card form { display: grid; gap: 16px; margin-top: 24px; }
.product-review-form-card label { display: grid; gap: 7px; color: #315a3d; font-weight: 800; }
.product-review-form-card input,
.product-review-form-card select,
.product-review-form-card textarea { width: 100%; padding: 12px 13px; border: 1px solid #b9c9bb; border-radius: 10px; background: #fff; color: #1b2a20; font: inherit; }
.review-honeypot { position: absolute !important; left: -9999px !important; }

.cart-discount-progress {
  margin: 10px 0 12px;
  padding: 11px 13px;
  color: #854900;
  background: #fff4d7;
  border: 1px solid #f0cf86;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.cart-price-notice {
  margin: 15px 0 0;
  color: #657269;
  font-size: 11px;
  line-height: 1.65;
}

.product-card__price del,
.product-public-price del,
.cart-row__price del { order: 0; }

.product-card__price strong,
.product-public-price strong { order: 1; }

@media (max-width: 760px) {
  .site-header .brand { flex: 1 1 0; min-width: 0; overflow: hidden; }
  .site-header .brand > span:last-child { flex: 1 1 0; min-width: 0; }
  .site-header .brand strong { display: block; width: 100%; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .cart-link { flex: 0 0 auto; }
  .site-header .menu-toggle { flex: 0 0 40px; }
  .promotion-banner { min-height: 34px; padding: 5px 35px 5px 7px; }
  .promotion-banner p {
    overflow: visible;
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .promotion-banner__close { right: 8px; width: 27px; height: 27px; font-size: 18px; }
  .hero__grid--single { justify-content: stretch; }
  .homepage-carousel { padding-top: 14px; }
  .homepage-carousel__frame { aspect-ratio: 4 / 1; border-radius: 14px; }
  .home-category-grid .category-card h3 { font-size: 14px; }
  .products-filter-toggle {
    position: sticky;
    top: 70px;
    z-index: 82;
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    padding: 9px 13px;
    color: #245537;
    background: #f5faf4;
    border: 1px solid #d7e6d7;
    border-radius: 12px;
    font-weight: 850;
    box-shadow: 0 7px 18px rgba(33, 77, 49, .09);
  }
  .products-filter-toggle i::before { content: "▲"; font-style: normal; }
  .products-filter-toggle[aria-expanded="false"] i::before { content: "▼"; }
  .products-filter {
    overflow: hidden;
    max-height: 600px;
    transform: none !important;
    opacity: 1 !important;
    transition: max-height .22s ease, padding .22s ease, margin .22s ease, border-width .22s ease !important;
  }
  .products-filter.products-filter--collapsed {
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
  }
  .product-trust-strip { grid-template-columns: 1fr; padding: 12px; }
  .product-reviews__heading { align-items: flex-start; flex-direction: column; }
  .product-review-card header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-carousel__slide,
  .products-filter { transition: none !important; }
}
