/* リセット */
.c-pageTitle {
  display: none;
}


/* スタイリング */

.cart-title {
  color: #C30D25;

  /* h2 */
  font-family: "Noto Sans JP";
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  line-height: 40.5px;
  /* 155.769% */
  letter-spacing: 1.35px;
  text-align: center;
  margin-bottom: 24px;
}

.cart-icon svg {

  background-color: #C30D25;
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2px;
  gap: 10px;
  border-radius: 14px;
  background: #C30D25;
}

.woocommerce {
  max-width: 720px;
  margin: 0 auto;
}

.woocommerce-cart-form {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-bottom: 60px;
}

.item-wrapper {
  flex: 1;
  /* 残りの余白を埋める */
  padding-left: 20px;
  /* 画像との間隔 */
  display: grid;
  padding: 12.5px 0 12.5px 24px;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cart-item {
  display: flex;
}


.item-name,
.item-quantity,
.item-subtotal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.item-remove {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
}

.remove-item {
  line-height: 2.8;
}

.item-label {
  color: #c30d25;
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  /* 111.111% */
  letter-spacing: 1.35px;
  display: flex;
  justify-content: center;
}

.item-text {
  line-height: 2.8;
}

.item-image {
  max-width: 120px;
  max-height: 120px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quantity-controls {
  display: flex;
  background-color: transparent;
  border-radius: 7.5px;
  border: 1px solid #e2e0e0;
}


/* ① 商品詳細ページ（Single Product）のみ適用 */
.single-product .quantity .qty {
  max-width: 30px;
  /* お好みの最大幅に調整してください */
  width: 100%;
  /* 親の枠内で最大幅まで広げる */
}

/* ② カートページのみ適用 */
.woocommerce-cart .quantity .qty {
  width: fit-content;
  min-width: 45px;
  /* 2桁・3桁でも崩れないように最小幅を持たせると安心です */
}

.qty-input {
  background-color: transparent;
  border: none;
  text-align: center;
}

.qty-minus,
.qty-plus {
  background-color: transparent;
  border: none;
  padding: 0.5rem 1rem;
}

.single_add_to_cart_button {
  min-width: 285px;
}


.shipping-info-box {
  padding: 46px;
  border-radius: 6px;
  border: 1px solid #D0D0D0;
  display: flex;
  flex-direction: column;
}

.info-row {
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 0.75px solid #E2E0E0;
  border-bottom: 0.75px solid #E2E0E0;
}

.info-row label {
  white-space: nowrap;
}

.info-label {
  display: flex;
  align-items: center;
}

.cart-totals-bottom {
  display: flex;
  flex-direction: column;
  max-width: 340px;
  margin: 0 auto;
  gap: 16px;
  width: 100%;
}

.total-row {
  display: flex;
  justify-content: space-between;
}

.total-price {
  color: #C30D25;
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 1.35px;
}

.grand {
  color: #C30D25;
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 1.35px;
}

.grand .woocommerce-Price-currencySymbol {
  color: #C30D25;
  font-family: "Hiragino Kaku Gothic Pro";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  /* 155.556% */
  letter-spacing: 0.7px;
}

.custom-input {
  width: 100%;
  max-width: 150px !important;
  background-color: transparent;
  border: none;
  text-align: end;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
}

.cart-actions .button {
  max-width: 285px;
  display: grid !important;

  width: 100%;
  padding: 26px !important;
  font-size: 18px !important;
  line-height: 16px !important;
  /* 88.889% */
  border-radius: 6px !important;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.button-secondary {
  border: 2px solid #C30D25 !important;
  background: #FFF !important;
  color: #C30D25 !important;

  /* ボタンテキスト */
  font-family: "Hiragino Kaku Gothic Pro";
  font-style: normal;
  font-weight: 600;
}

.button-primary {
  display: flex;
  border: 0.75px solid #C30D25 !important;
  background: #C30D25 !important;
  color: #FFF !important;

  /* ボタンテキスト */
  font-family: "Hiragino Kaku Gothic Pro";
}

.checkout-button {
  display: inline-flex;
  /* ボタンの性質を保ちつつ、中身を横並びにする */
  align-items: center;
  /* アイコンと文字の「高さ」を中央で揃える */
  justify-content: center;
  /* ボタンの中央に寄せる */
  gap: 8px;
  /* アイコンと文字の間の隙間（お好みで調整） */
  text-decoration: none;
  /* リンクの下線を消す */
}

/* アイコンが少し小さい、あるいは位置がズレる場合の微調整 */
.button-icon {
  flex-shrink: 0;
  /* アイコンが潰れないように固定 */
}

.line-note {
  text-align: center;
}

.line-copy {
  border: #34C754 solid 1px !important;
  background-color: transparent !important;
  color: #34C754 !important
}

.line-order {
  background-color: #34C754 !important;
  color: #FFF !important;
  border: #34C754 solid 1px !important;
  padding: 0 !important;

}

/* 送料はこちらボタン */
.ec-shipping-btn-wrap {
  margin-top: 12px;
}

.ec-shipping-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 250px;
  padding: 6px 16px;
  border: 2px solid #C30D25;
  border-radius: 4px;
  background: #FFF;
  color: #C30D25;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.ec-shipping-btn:hover {
  background: #C30D25;
  color: #FFF;
}

@media (max-width: 768px) {
  .ec-shipping-btn {
    max-width: 100%;
  }

  .cart-item {
    flex-direction: column;
  }

  .item-image {
    margin: 0 auto;
  }

  .item-wrapper {
    grid-template-columns: 1fr;
  }

  .quantity-controls {
    width: fit-content;
  }

  .item-label {
    margin-bottom: 16px;
  }

  .cart-actions {
    flex-direction: column-reverse;
    gap: 16px;
    justify-content: center;
    margin: 0 auto;
  }
}

/* サムネイルスライダーのカスタマイズ */
/* アクティブ時の枠線を変更 */
#thumbnail-slider .splide__slide.is-active {
  border: 3px solid #C30C25;
}

/* 矢印を画像の下に配置する */
#thumbnail-slider {
  padding-bottom: 24px;
  /* 矢印を配置するスペースを確保 */
}

#thumbnail-slider .splide__arrows {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

#thumbnail-slider .splide__arrow {
  position: static;
  /* デフォルトの絶対配置を解除 */
  transform: none;
  /* デフォルトの上下中央揃えを解除 */
  background: transparent;
  width: auto;
  height: auto;
}

#thumbnail-slider .splide__arrow svg {
  fill: #C30D25;
  /* 矢印の色 */
  width: 24px;
  height: 24px;
}