.eba-shop-section {
  background: transparent;
  padding: 0;
  margin: 0 0 40px;
  color: #5a4638;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", sans-serif;
}

.eba-shop-heading {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.eba-shop-heading h2 {
  font-size: 22px;
  margin: 0;
}

.eba-shop-heading p {
  margin: 0;
  font-size: 13px;
  color: #8f7663;
}

.eba-product-grid {
  display: grid;
  grid-template-columns: repeat(var(--eba-product-columns, 3), minmax(0, 1fr));
  gap: 20px;
}

.eba-product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.eba-product-thumb {
  position: relative;
  padding-top: 62%;
  background: #fad7bf;
}

.eba-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eba-product-badge-wrap {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eba-product-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  color: #b6763d;
  line-height: 1;
}

.eba-product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.eba-product-category {
  font-size: 12px;
  color: #b6763d;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.eba-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.eba-product-desc {
  font-size: 13px;
  color: #7a6251;
  line-height: 1.6;
  margin: 0 0 10px;
  flex-grow: 1;
}

.eba-product-meta {
  font-size: 13px;
  color: #8f7663;
  margin-bottom: 8px;
}

.eba-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eba-product-price {
  font-size: 15px;
  font-weight: 600;
  color: #b6763d;
}

.eba-product-price small {
  font-size: 11px;
  font-weight: 400;
  color: #8f7663;
  margin-left: 4px;
}

.eba-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #b6763d;
  color: #b6763d;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.eba-shop-btn:hover {
  background: rgba(182, 118, 61, 0.08);
}

@media (max-width: 900px) {
  .eba-product-grid {
    grid-template-columns: repeat(var(--eba-product-columns-tablet, 2), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .eba-product-grid {
    grid-template-columns: repeat(var(--eba-product-columns-mobile, 1), minmax(0, 1fr));
  }
}

/* 整個區域設定為定位點 */
.eba-shop-section {
  position: relative;
}

/* Grid 層級角落圖示 */
.eba-grid-corner-icon {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.eba-grid-corner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 四個角落的定位 - 稍微向外偏移以避免遮擋內容 */
.eba-grid-corner-icon-top-left {
  top: -12px;
  left: -12px;
}

.eba-grid-corner-icon-top-right {
  top: -12px;
  right: -12px;
}

.eba-grid-corner-icon-bottom-left {
  bottom: -12px;
  left: -12px;
}

.eba-grid-corner-icon-bottom-right {
  bottom: -12px;
  right: -12px;
}

/* 響應式調整 */
@media (max-width: 640px) {
  .eba-grid-corner-icon {
    transform: scale(0.85);
  }

  /* 手機版可能需要減少偏移以免被切掉，或者保持原樣視設計而定 */
  .eba-grid-corner-icon-top-left {
    top: -6px;
    left: -6px;
  }

  .eba-grid-corner-icon-top-right {
    top: -6px;
    right: -6px;
  }

  .eba-grid-corner-icon-bottom-left {
    bottom: -6px;
    left: -6px;
  }

  .eba-grid-corner-icon-bottom-right {
    bottom: -6px;
    right: -6px;
  }
}