/* << 變數定義 */
.page-footer {
  border-top: 1px solid var(--border-color);
}

.ammenu-nav-sections {
  background: none;
}

/* Magento_PageBuilder >> */
div[data-content-type="slide"] a[data-link-type="default"][data-element="link"] {
  width: 100%;
}

ul.slick-dots {
  bottom: 23px;
}
.pagebuilder-slider.slick-slider{
  padding: 0;
}

.pagebuilder-slider.slick-slider .slick-dots li,
.pagebuilder-slider.slick-slider .slick-dots li button {
  width: 64px;
  height: 2px;
}

.pagebuilder-slider.slick-slider .slick-dots li.slick-active button {
  background: #fff;
  opacity: 1;
}

.pagebuilder-slider.slick-slider .slick-dots li button {
  padding: 0;
}

.pagebuilder-slider.slick-slider .slick-dots li button {
  background: #fff;
  opacity: .56;
}

.slick-dots li button:before {
  display: none;
}

/* << Magento_PageBuilder */
/* 按鈕樣式 >> */
.secondary-btn a,
.secondary-btn button,
a.pagebuilder-button-primary,
button.pagebuilder-button-primary,
div.pagebuilder-button-primary,
a.pagebuilder-button-primary:hover,
button.pagebuilder-button-primary:hover,
div.pagebuilder-button-primary:hover,
.amblog-grid-list .amblog-post-container .amblog-read,
.amblog-grid-list .slick-slide .amblog-item .amblog-read,
.action.primary,
.action-primary,
.amshopby-button,
.am-filter-go,
#maincontent .secondary-btn a,
#maincontent button.secondary-btn,
.secondary-btn a,
.secondary-btn button,
.primary-btn.solid a,
button.primary-btn.solid,
button.primary-btn.solid:focus,
button.primary-btn.solid:active,
.action-apply {
  background-color: var(--blue-color) !important;
  border: 1px solid var(--blue-color) !important;
  color: #ffffff !important;
}

.secondary-btn a:hover,
.secondary-btn button:hover {
  background: #ffffff !important;
  color: var(--blue-color) !important;
  border: 1px solid var(--blue-color) !important;
}

.catalog-product-view .product.media .amlabel-position-wrapper {
  background-color: var(--red-color);
}

/* << 按鈕樣式 */
/* amblog 文章頁面樣式 >> */
.amblog-grid-list .amblog-post-container .post-image {
  margin-bottom: 1em;
}

.amblog-grid-list .amblog-content {
  flex-grow: 1;
}

.amblog-post-container.-post-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 水平居中所有子元素 */
}

.amblog-post-container.-post-page img {
  max-width: 100%;
  /* 確保圖片不溢出 */
  height: auto;
  /* 保持圖片比例 */
  display: block;
  /* 移除圖片底部的空白 */
  margin: 0 auto;
  /* 圖片水平居中 */
}

.amblog-content .amblog-dates,
.amblog-content .amblog-post-title {
  text-align: center;
  /* 文字水平居中 */
  justify-content: center;
}

.amblog-content .amblog-dates span,
.amblog-content .amblog-post-title a {
  display: inline-block;
  /* 確保文字內容居中對齊 */
}

/* << amblog 文章頁面樣式 */
/* amblog 文章列表樣式 >> */
.amblog-element-block:not(.widget)>div:not(.amblog-overlay),
.amblog-element-block.widget {
  box-shadow: none;
}

.amblog-post-list .slick-initialized .slick-slide {
  flex-direction: column;
  justify-content: flex-start;
}

/* 圖片容器 */
.amblog-post-list .post-image img {
  border-radius: 5px;
}

.amblog-post-list .post-image {
  position: relative;
}

/* 箭頭動畫 keyframes */
@keyframes prevNextButtonKeyframe {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(calc(50% + 5px));
  }

  51% {
    transform: translateX(calc(-50% - 5px));
  }

  100% {
    transform: translateX(0);
    /* 回到原位 */
  }
}

/* 懸停時箭頭動畫 */
.prev-next-button--next:hover svg.icon.icon--nav-arrow-right {
  animation: prevNextButtonKeyframe 0.3s ease-in-out forwards;
  /* 延長時間到 0.6s */
}

/* 箭頭樣式 */
.amblog-post-list .article-item__arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  opacity: 0;
  /* 默認隱藏 */
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  /* 白色半透明背景 */
  border-radius: 3px;
  padding: 10px;
}

.amblog-post-list .slick-track {
  justify-content: space-between;
}

.amblog-post-list .slick-slide:hover .article-item__arrow {
  opacity: 1;
  /* 懸停時顯示 */
}

.amblog-post-list .amblog-list .short-description {
  font-style: unset;
  line-height: 1.5;
}

.amblog-post-list .amblog-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.amblog-post-list .amblog-title .flex {
  justify-content: center;
}

.amblog-post-list .amblog-title .flex.justify-between a {
  font-size: 12px;
}

.amblog-post-list .amblog-list .post-item-details h6 {
  font-size: 26px;
  margin: 15px 0;
  line-height: 1.5;
}

.amblog-post-list .amblog-list .post-item-details a {
  text-decoration: none;
}

.amblog-post-list .slick-slide {
  margin: 0 20px;
}

.amblog-post-title .post-title:hover {
  color: var(--blue-color);
}

.amblog-pager-container .amblog-link {
  background: var(--blue-color);
}

.amblog-grid-list .amblog-post-title {
  text-align: left;
}
/* << amblog 文章列表樣式 */

/* 產品輪播間隔過大 >> */
.slick-list .product-image-wrapper img.product-image-photo{
  margin: 5px 0;
}
div ol.product-items.widget-product-carousel .product-image-wrapper {
  padding-bottom: 0 !important;
}
/* 產品輪播間隔過大 << */

/* 相關商品輪播 */
div#relateditem_carousel {
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

/* 結帳頁面 */
div#checkout-step-shipping {
  margin-top: 20px;
}

@supports (font: -apple-system-body) and (-webkit-appearance: none) {
  img[loading="lazy"] {
      clip-path: inset(0.6px)
  }
}
.ammenu-logo img  {
  height:62px;
}
li.ammenu-item.category-item a {
  color: #000 !important;
}
.product-info-main .swatch-attribute-options .image{
  background-size: contain !important;
}
.table-order-items td.col.image > img{
  width: 100px
}

.ammenu-header-container .block-search .minisearch .control{
  z-index: 350;
}

@media only screen and (max-width: 768px) {
  .products-grid.wishlist .product-item .price-box {
      margin-left: 0;
  }
}

/* 針對 iPhone >> */
@media  only screen and (max-width: 390px) and (-webkit-device-pixel-ratio: 2)
,       only screen and (max-width: 390px) and (-webkit-device-pixel-ratio: 3)
,       only screen and (max-width: 430px) and (-webkit-device-pixel-ratio: 3) 
{
  /* #amasty-gallery-container .amasty-gallery-thumb-link.cursor-pointer {
    width: 148px;
  } */
  #amasty-gallery-container .amasty-gallery-thumb-link.cursor-pointer img {
    width: 100%;
    height: auto;
    touch-action: pan-y; /* 限制為垂直滑動 */
    user-select: none;
    -webkit-user-drag: none;
  }
}
/* 針對 iPhone << */