.sp-title-top{
    display: none;
}

.ast-article-single img {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.single-product button,
.single-product .ast-button,
.single-product .button,
.single-product input[type="button"],
.single-product input[type="reset"],
.single-product input[type="submit"],
.single-product a.wp-block-button__link {
    box-shadow: none !important;
}

.recently_checked{
  font-size: 2rem;
  padding-top: 3rem;
}

.slider-history.woorecent-slider {
    padding-bottom: 5rem;
    padding-top: 2rem;
    display: flex;
    overflow: hidden;
}

.slider-item h6{
  color: #212529;
}

.slider-item {
    flex: 0 0 auto;
    transition: transform .4s ease;
}

.slider-item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.single_add_to_cart_button{
  background-color: #212529 !important;
  opacity: 1 !important;
  min-height: 40px;
}

.single_add_to_cart_button:hover{
  background-color: #4b1128 !important;
  cursor: pointer;
}

.woocommerce-js div.product{
  position: static;
}

@media screen and (max-width: 767px) {
  .single-product.woocommerce {
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
}


/* 最近見た商品 */
.slider-item h6 {
  width: 143px;
  margin: 8px auto 0;
  text-align: center;
  white-space: normal;
  word-break: break-all;
}


/* ================================
   スマホ専用（767px以下）商品画像スライダー（横スライドver）
================================ */
@media (max-width: 767px) {

    .sp-title-top{
        display: block;
    }

  /* メイン画像をラップしてスライダー化する領域 */
  .section-thumbnails .col-md-5 {
    width: 90%;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-thumbnails .col-md-5 .row{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* 横スライド用ラッパー */
  .product-slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形 */
    overflow: hidden;
  }

  .product-slider-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
  }

  /* 各スライド画像 */
  .product-slider-inner .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
  }

  /* PC用のサムネイルはスマホでは非表示 */
  .row.row-slim-padding {
    display: none !important;
  }

  .col-md-7 .pl-lg-5 h1{
    font-size: 2rem;
  }
}