/*--- 商品詳細全体 ---*/
.product-top {
 margin-top: 20px;
 display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 1024px) {
  .product-top {
  flex-direction: column;
  }
}


/*--- 商品画像 ---*/
 .p-product-img {
  width: 50%;
  position: relative;
 }
@media screen and (max-width: 1024px) {
  .p-product-img {
    width: 100%;
 }
}


/* メイン画像ラッパー */
.p-product-img__main{
  border-radius: 8px;
  overflow: hidden;
  max-height: 500px;
}
@media screen and (max-width: 767px) {
  .p-product-img__main {
    max-height: 360px;
    aspect-ratio: 1 / 1;
 }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .p-product-img__main {
    aspect-ratio: auto;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
 }
 
}

/* メイン画像スライド内の各画像 */
.p-product-img__main-item img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .p-product-img__main img {
    width: auto; 
    height: auto; 
    max-width: 100%;     
    object-fit: contain;
    margin: 0 auto;
 }
}

/* サムネイル全体 */
.p-product-img__thumb{
  margin-top: 12px;
}

/* サムネ横スクロール用のラッパー */
.u-overflow-slide{
  overflow: hidden;
}
@media (max-width:1024px){
  .u-overflow-slide{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* サムネリスト */
.p-product-thumb-list{
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
}

/* 各サムネ */
.p-product-thumb-list__item{
  cursor: pointer;
  flex: 0 0 96px;
}
@media (max-width:767px){
  .p-product-thumb-list__item{
    flex-basis: 76px;
  }
}

/* サムネ画像 */
.p-product-thumb-list__img img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* slickの余白・アウトライン調整（テーマ干渉対策） */
.slick-slider{ margin: 0; }
.slick-slide{ outline: none; }

 
 /*--- 商品情報 ---*/
 .product-info {
  width: 47%;
 }
 @media screen and (max-width: 1024px) {
  .product-info {
   margin-top: 20px;
  width: 100%;
 　}
 }

 
 /*商品番号*/
 .p-product-info__id {
  font-size: .9rem;
 }

.product-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width:1024px){
  .product-name-group {
  flex-direction: column;
 }
}


/*商品名*/
.product-name {
  margin: 0;
  font-weight: 500;
  font-size: 1.5rem;
}
@media (max-width:767px){
  .product-name {
  font-size: 1.3rem;
 }
}

/*冷蔵・冷凍*/
.product-group-tag {
  font-size: .9rem;
  display: inline-block;
  border: 1px solid #333;
  padding: 2px 20px;
  margin: 0;
}

 /*商品価格*/
 .p-product-price__sell {
   margin-top: 20px;
  font-size: 1.3rem;
   font-weight: 500;
 }
 @media screen and (max-width: 1024px) {
 .p-product-price__sell {
  text-align: center;
  }
 }

/*お客様の声を見る*/
.review-link {
 display: block;
 margin: 12px 0;
  cursor: pointer;
}
.review-link:hover {
 opacity: .8;
}

 @media screen and (max-width: 1024px) {
 .review-link {
 display: block;
 text-align: center;
 }
}

/*オプション価格表*/
.option-price {
 display: none;
}


 /*在庫*/
 .p-product-form-stock__stock {
  font-size: 1.4rem;
   margin-bottom: 30px;
 }
 
 .p-product-form-stock__stock span {
  color: #FF2727;
 }
 
 .option-title {
  font-size: 1.4rem;
 }

/*購入オプション*/
/* オプション table */
.p-product-option-tbl {
 margin-top: 30px;
 margin-bottom: 30px;
 overflow-x: auto;
}
@media screen and (max-width: 767px) {
  .p-product-option-tbl {
    margin: 0;
 }
}

.p-product-option-tbl table {
 margin-bottom: 0;
 width: 100%;
 border: 1px solid #cbcbcb;
 border-top: none;
 border-right: none;
}
.p-product-option-tbl table div {
 display: inline-block !important;
}

.p-product-option-tbl th, .p-product-option-tbl td {
 padding: 12px 5px;
 border-left: 0;
 border-top: 1px solid #cbcbcb;
 font-weight: 400;
}

.p-product-option-tbl th {
 border-right: 1px solid #cbcbcb;
}

.p-product-option-tbl .table-bordered tbody:first-child tr:first-child th, .p-product-option-tbl .table-bordered tbody:first-child tr:first-child td {
  border-top: 1px solid #cbcbcb;
}

.p-product-option-tbl td {
 padding-left: 10px;
 border-right: 1px solid #cbcbcb;
}


.p-product-option-tbl label {
 display: inline-block!important;
 margin-left: 5px;
 margin-bottom: 0;
}

.p-product-option-tbl input {
 margin-top: 0;
}

.p-product-option-tbl .none {
 border-top: 1px solid #cbcbcb;
 border-right: 1px solid #cbcbcb;
}

/* オプション select */
.p-product-option-select {
margin-bottom: 20px;
}
.p-product-option-select__box {
 margin-top: 15px;
 display: flex;
 align-items: center;
}
.p-product-option-select__ttl {
 margin-bottom: 5px;
 margin-right: 10px;
}

.product_cart_select {
 height: 40px;
 width: 167px;
 border: 1px solid #cbcbcb;
 margin-left: 11px;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
 .product_cart_select {
  width: 45%;
 }
}

 /*数量*/
.product-init-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}


/* 数量入力＋ボタン */
.product-init-list__detail {
  display: flex;
  align-items: center;
}


/* + - ボタン共通 */
.product-init-list__detail-updw {
  display: flex;
  margin: 0;
  padding: 0;
}

/* 見出しとUIを横並びに */
.product-init-list{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0;
}

.product-init-list__name {
  font-weight: 400;
  
}

/* 〔− | 数値 | ＋〕一体型ボックス */
.product-init-list__detail-updw{
  display:flex; 
  align-items:center;
  height:44px;
  border:1px solid #cbcbcb;
  border-radius:2px;
  overflow:hidden;
  padding:0; margin:0;
  list-style:none;
}

/* −／＋ ボタン */
.product-init-list__detail-updw > li a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  position:relative;
  user-select:none;
  cursor:pointer;
  border: none;
}

/* − 記号 */
.product-init-list__detail-updw > li:first-child a::before
{
  content:""; width:14px; height:2px; background:#777; display:block;
}

/* ＋ 記号 */
.product-init-list__detail-updw > li:last-child a::before,
.product-init-list__detail-updw > li:last-child a::after{
  content:""; position:absolute; background:#777;
}

.product-init-list__detail-updw > li:last-child a::before{ width:14px; height:2px; }

.product-init-list__detail-updw > li:last-child a::after{ width:2px; height:14px; }

.product-init-list__detail-updw > li a:hover::before,
.product-init-list__detail-updw > li a:hover::after{ background:#555; }


/* 中央の数量入力 */
.product-init-list__detail-num {
  width:80px;
  height:44px;
  text-align:center;
  -moz-appearance:textfield;
  border: none;
  font-size: 1rem;
}

.product-init-list__detail-num::-webkit-outer-spin-button,
.product-init-list__detail-num::-webkit-inner-spin-button{
  -webkit-appearance:none; margin:0;
}

/* 小さめ画面で幅を少しタイトに */
@media (max-width:767px){
  .product-init-list__detail-num{ 
    width:64px; 
  }
}

 
 /*カートに入れるボタン*/
 .p-product-form-btn {
  text-align: center;
  margin-top: 30px;
 }
 
 .p-product-form-btn__cart {
  width: 100%;
   margin: 0 auto;
 }
 
 @media screen and (min-width: 768px) and (max-width: 1024px) {
   .disable_cartin {
    width: 100%;
   }
 .p-product-form-btn__cart {
  width: 65%;
  margin: 0 auto;
  }
 }
 
 .c-btn-cart {
  padding: 20px;
   background: #57D1DE;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   color: #fdfdfd;
   border: none;
 }
.c-btn-cart:hover {
opacity: .7;
}
 @media screen and (max-width: 767px) {
 .c-btn-cart {
   padding: 10px;
  }
 }
 @media screen and (min-width: 768px) and (max-width: 1024px) {
 .c-btn-cart {
   justify-content: center;
  padding: 12px　60px;
   margin: 0 auto;
  }
 }
 
.c-btn-cart img {
 width: 35px;
 height: 35px;
 margin-right: 10px;

}

 .cart-in {
    color: #fdfdfd;
    font-weight: bold;
   font-size: 1.1rem;
   margin-bottom: 0;
 }

 /*注意事項*/
.p-product-link-list {
  text-align: right;
  margin: 12px 0;
}

.p-product-link-list__item {
  margin: 5px 0;
}

.p-product-link-list__item a {
  font-size: .9rem;
}
 @media screen and (max-width: 767px) {
 .p-product-link-list__item a {
  font-size: .8rem;
   }
 }
 
 /*SNSシェアボタン*/
.sns-share {
 margin: 20px 0;
 text-align: center;
}

.sns-share p {
 font-weight: 600;
  font-size: 1.2rem;
}

.p-product-sns-list {
   margin-top: 10px;
  display: flex;
   justify-content: center;
   gap: 10px;
 }
 @media screen and (min-width: 768px) and (max-width: 1024px) {
 .p-product-sns-list {
  }
 }
 
 .p-product-sns-list li {
 
 }

@media screen and (min-width: 768px) and (max-width: 1024px) {
 .p-product-sns-list li { 

  }
 }

 
 /*--- 商品説明 ---*/
.product-explain {
 margin-top: 60px;
}
@media screen and (max-width: 1024px) {
 .product-explain {
 margin-top: 20px;
   margin-bottom: 20px;
  }
}

.product-order-exp {
 margin-bottom: 60px;
}

 .product-order-exp p {
  line-height: 1.8rem;
  font-size: 1rem;
 }

/* ===== tableベースのスペック表 ===== */
.spectable-wrap{
  border:1px solid #cbcbcb;
  border-radius:4px;
  overflow:hidden;
  max-width: 900px;
  margin: 40px auto;
}

.spectable-wrap br {
  display: none;
}

.spectable{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.spectable tr + tr { 
  border-top:1px solid #cbcbcb; 
}

/* 左セル（ラベル） */
.spectable th{
  width:20%;
  background:#eee;
  font-weight:500;
  text-align:left;
  vertical-align:middle;
  padding:16px 18px;
  border-bottom: 1px solid #cbcbcb;
}

/* 右セル（内容） */
.spectable td{
  padding:16px 20px;
  vertical-align:top;
  box-sizing:border-box;
  border-left:1px solid #cbcbcb;
}

/* 箇条書き */
.spec-list{ margin:0; padding:0; list-style:none; }

/* ===== スマホ（&#8804;767px）：上下に積む ===== */
@media (max-width:767px){
  .spectable tr{
    display:block;
  }
  .spectable th,
  .spectable td{
    display:block;    
    width:auto;
  }

  .spectable td{
    border-left:none;
    border-top:1px solid #cbcbcb;/* ラベルと本文の区切り */
    padding-top:12px;
  }

  .spectable th,
  .spectable td{
    padding-left:14px;
    padding-right:14px;
  }
}

/*関連商品*/
.p-product-recommend.product-list {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   gap: 20px;
  }
  @media screen and (max-width: 767px) { 
.p-product-recommend .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  　}
  }
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .product-list {
   grid-template-columns: 1fr 1fr 1fr;
  　}
  }
  
  .product-item {
  margin-bottom: 30px;
  }
  @media screen and (max-width: 767px) { 
  .product-item {
   margin: 10px 0;
  　}
  }
  @media screen and (min-width: 768px) and (max-width: 1024px) {
  .product-item {
   margin: 10px 0;
  　}
  }
  
  
  .item-image {
   width: 100%;
    object-fit: cover;
    margin: 10px auto;
    text-align: center;
  }
  
  .item-name {
   width: 100%;
  }
  
  .item-price {
    margin-top: 10px;
   text-align: right;
  }
  
  .soldout {
    text-align: right;
   color: red;
  }
  
  .extra {
   text-align: center;
  }


 /*--- レビュー ---*/
 .product-related-list,.product-review p {
  padding-left: 15px;
 }

.p-product-review__btn {
 margin-top: 20px;
}

.p-product-review__btn a  {
 font-size: 1.2rem;
}

.p-product-review__btn a img {
  margin-right: 10px;
 width: 40px;
  height: 40px;
}
@media screen and (max-width: 767px) {
.p-product-review__btn a img {
 width: 30px;
  height: 30px;
  }
}
