/* Product-home action and empty-state UI V6.
   Presentation only. Existing navigation and product APIs remain untouched. */

html.merchant-product-home-actions-page-v6 .merchant-product-actions-v6 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 10px 14px 16px !important;
}

html.merchant-product-home-actions-page-v6 .merchant-product-actions-v6 > h5 {
  grid-column: 1 / -1;
  padding: 10px 5px 3px !important;
}

html.merchant-product-home-actions-page-v6 .merchant-product-action-v6 {
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  margin: 0 !important;
  padding: 15px 17px !important;
  overflow: hidden;
  border: 1px solid #e5eaf1 !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 7% 5%, rgba(255, 207, 95, .16), transparent 38%),
    linear-gradient(135deg, #fffdf8, #f8fafc) !important;
  box-shadow: 0 9px 22px rgba(38, 54, 85, .07);
  cursor: pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

html.merchant-product-home-actions-page-v6
  .merchant-product-action-v6[data-product-action-index="2"] {
  background:
    radial-gradient(circle at 7% 5%, rgba(58, 96, 173, .13), transparent 38%),
    linear-gradient(135deg, #f9fbff, #f6f8fc) !important;
}

html.merchant-product-home-actions-page-v6 .merchant-product-action-v6::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #f4c959, #c98c18);
}

html.merchant-product-home-actions-page-v6
  .merchant-product-action-v6[data-product-action-index="2"]::before {
  background: linear-gradient(180deg, #4d73b9, #17233b);
}

html.merchant-product-home-actions-page-v6 .merchant-product-action-v6:hover {
  z-index: 2;
  transform: translateY(-3px);
  border-color: #e8c66e !important;
  box-shadow: 0 15px 30px rgba(38, 54, 85, .12);
}

html.merchant-product-home-actions-page-v6 .merchant-product-action-v6 > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
}

html.merchant-product-home-actions-page-v6
  .merchant-product-action-v6
  > div:first-child
  > .van-icon:first-child {
  display: inline-flex;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #9b6810;
  background: #fff3cf;
  box-shadow: inset 0 0 0 1px rgba(207, 153, 42, .18);
}

html.merchant-product-home-actions-page-v6
  .merchant-product-action-v6[data-product-action-index="2"]
  > div:first-child
  > .van-icon:first-child {
  color: #233b68;
  background: #eaf0fb;
  box-shadow: inset 0 0 0 1px rgba(57, 91, 151, .14);
}

html.merchant-product-home-actions-page-v6
  .merchant-product-action-v6
  > div:first-child
  span {
  overflow: hidden;
  margin-left: 13px !important;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.merchant-product-home-actions-page-v6 .merchant-product-action-v6 > div:last-child {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto !important;
  border-radius: 50%;
  color: #758096;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 12px rgba(34, 50, 81, .08);
}

html.merchant-product-home-actions-page-v6 .merchant-product-hot-empty-v6 {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(230px, 1fr) auto;
  min-height: 320px;
}

html.merchant-product-home-actions-page-v6
  .merchant-product-hot-empty-v6
  > h5 {
  grid-column: 1 / -1 !important;
}

html.merchant-product-home-actions-page-v6 .merchant-product-empty-wrap-v6 {
  display: flex !important;
  width: 100%;
  min-width: 0;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.merchant-product-home-actions-page-v6 .merchant-product-empty-v6 {
  display: flex;
  width: 100%;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px !important;
}

html.merchant-product-home-actions-page-v6
  .merchant-product-empty-v6
  .van-empty__image {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  opacity: .74;
}

html.merchant-product-home-actions-page-v6
  .merchant-product-empty-v6
  .van-empty__description {
  width: 100%;
  margin-top: 10px;
  color: #9099a8;
  text-align: center !important;
}

html.dark.merchant-product-home-actions-page-v6 .merchant-product-action-v6 {
  border-color: #2c3545 !important;
  background: linear-gradient(135deg, #171d27, #121821) !important;
}

html.dark.merchant-product-home-actions-page-v6
  .merchant-product-action-v6
  > div:first-child
  span {
  color: #edf1f7;
}

@media (max-width: 760px) {
  html.merchant-product-home-actions-page-v6 .merchant-product-actions-v6 {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 8px 10px 13px !important;
  }

  html.merchant-product-home-actions-page-v6 .merchant-product-action-v6 {
    min-height: 70px;
    padding: 11px 13px !important;
    border-radius: 14px !important;
  }

  html.merchant-product-home-actions-page-v6
    .merchant-product-action-v6
    > div:first-child
    > .van-icon:first-child {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 11px;
  }

  html.merchant-product-home-actions-page-v6 .merchant-product-hot-empty-v6,
  html.merchant-product-home-actions-page-v6 .merchant-product-empty-wrap-v6,
  html.merchant-product-home-actions-page-v6 .merchant-product-empty-v6 {
    min-height: 210px;
  }
}
