/* 商品詳細
*************************************************************/
.product-wrap{
display: flex;
}

.product-image {
padding-bottom: 30px;
text-align: center;
flex-basis: 55%;
margin-right: 3em;
}

.product-image-main {margin-bottom: 30px;}

.product-image-thumb {
display: flex;
flex-wrap: wrap;
margin: 0;
}

.product-image-thumb li {
margin-bottom: 20px;
cursor: pointer;
width: calc( 100% / 3 - 10px);
}

.product-image-thumb li:nth-child(3n+1){
margin-left: 0;
margin-right: 8px;
}
.product-image-thumb li:nth-child(3n+2){
margin-left: 7px;
margin-right: 7px;
}
.product-image-thumb li:nth-child(3n+3) {
margin-left: 8px;
margin-right: 0;
}

.product-content {
flex-basis: 45%;
}

.product-content h2{
margin: 0;
margin-bottom: 0.5em;
}
.prduct-price{
font-size: 1.4em;
font-weight: 600;
margin-bottom: 2em;
}
.prduct-regular-price{
margin: 0;
font-size: 1.2em;
text-decoration: line-through;
}
.product_discount{
margin-left: 0.5em;
font-size: 0.8em;
color: red;
}

.product-content th, .product-content td{
padding: 8px 0;
border: none;
}
.product-content th{
font-weight: normal;
}
.product_sales {
  line-height: 1.5;
  font-weight: 700;
  font-size: 1.2em;
}
input.product-cart-init-num {
  float: left;  
  -webkit-appearance: none;
  border: 1px solid #ccc;
  height: 30px!important;
  width: 20%!important;
}
.product-unit {
  float: left;
  padding: 5px;
}
.product-order-form input[type="text"] {
  width: calc(100% - 14px);
  height: 30px!important;
}
.product_cart_area {
  margin-bottom: 1.5em;
}
.btn-addcart {
  background-color: #000;
  border: medium none;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 18px 0;
  transition: 0.3s;
}
.btn-addcart i{
  margin-right: 0.5em;
}

.btn-addcart:hover {
  background-color: #000;
  color: #fff;
  opacity: 0.7;
}

.fb_adjust {
  position: relative;
  top: 1px;
}

.product-table {
  border: 1px solid #ddd;
  border-collapse: separate;
  border-top: 0;
  border-left: 0;
  -webkit-border-radius: 0;
     -moz-border-radius: 0;
          border-radius: 0;
  *border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 4px 5px;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  vertical-align: middle;
  text-align: left;
  line-height: 20px;
}

.product-badge{
display: inline-flex;
}
.product-badge div{
max-width: 150px;
background-color: #000;
padding: 0.3em 0.7em;
margin-right: 0.5em;
font-size: 0.7em;
color: #fff;
}
.product-badge div.product-badge-bl{ background-color: #0070c0;}
.product-badge div.product-badge-yel{ background-color: #ffd966;}
.product-badge div.product-badge-grn{ background-color: #00b050;}


@media (max-width: 768px) {
.product-wrap{display: block;}
.product-image {margin-right: 0;}
.product-image-main {margin-bottom: 20px;}
}
@media (max-width: 480px) {
.product-image-main {margin-bottom: 15px;}
.product-image-thumb li {
margin-bottom: 10px;
width: calc( 100% / 3 - 6px);
}
.product-image-thumb li:nth-child(3n+1){
margin-left: 0;
margin-right: 3px;
}
.product-image-thumb li:nth-child(3n+2){
margin-left: 6px;
margin-right: 3px;
}
.product-image-thumb li:nth-child(3n+3) {
margin-left: 3px;
margin-right: 0;
}
.prduct-price{
font-size: 1.2em;
margin-bottom: 1em;
}
.prduct-regular-price{
font-size: 1.1em;
}
.product_discount{
margin-left: 0.3em;
}
}

.product__fav-item {
  margin-top: -20px;
  text-align: right;
}

.product__fav-item button {
  padding: 0;
  cursor: pointer;
  transition: .2s;
  color: #999;
  border: 0;
  outline: none;
  background: transparent;
}

.product__fav-item .fav-items {
  color: #ff7373;
}

.product__fav-item svg {
  width: 20px;
  height: 20px;
  vertical-align: -.35em;
  fill: currentColor;
}

.cell_2 .table_price,
.cell_2 .table_price + br {
display: none;
}

.product-spec-table none_border_table table {
  margin-bottom: 30px;
}

.product-table th, .product-table td {
    padding: 0;
    border-top: none!important;
    border-left: none!important;
    text-align: center;
    max-width: 15px;
}

.product-table {
    border: none!important;
    background-color: #efefef;
    padding: 10px 10px 15px
}

.stock_zero {
    visibility: hidden; 
    position: relative; 
    display: inline-block; 
    width: 1em; 
    height: 1em;
}

.stock_zero::after {
    content: "×"; 
    visibility: visible;
    position: absolute; 
    left: 50%; 
    top: 35%; 
    transform: translate(-50%, -50%); 
    font-size: 1.5em; 
    line-height: 1; 
}

.add_cart_table tr {
  display: flex;
  align-items: center;
}

/* ボタンのコンテナ */
.pur_block {
  padding: 8px 0;
  border: none;
  display: flex;
  align-items: center;
}

/* 増加と減少ボタンを横並びに配置 */
.button-container {
  display: flex;
  align-items: center;
}

/* 増加ボタン */
.increase, .decrease {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: black;
  color: white;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.increase span, .decrease span {
  font-weight: bold;
}

.increase:focus, .decrease:focus {
  color: #555;
  box-shadow: none;
  text-decoration: none; 
}

/* 数量入力ボックスのスタイル */
.quantity-input {
  width: 60px;
  text-align: center;
  margin: 0;
  padding: 5px;
  border: 1px solid #000;
  height: 30px
}

/* 減少ボタンが左、増加ボタンが右に配置されるように */
.decrease {
  margin-right: auto;
  font-size: 20px;
  padding-bottom: 0.1em;
}
.increase {
  margin-left: auto;
  font-size: 16px;
}

.th-width {
  width: 120px;
}


@media screen and (max-width: 767px) {
  /* ラジオブロック背景と全体調整 */
  .p-product-option-radio {
    background-color: #efefef;
    padding: 1.5em;
    text-align: center;
  }

  /* タイトル非表示（例：サイズ） */
  .p-product-option-select__ttl {
    display: none;
  }

  /* ラジオボタンラベルの縦並び */
  .p-product-option-radio__list {
    display: flex;
    align-items: center;
    gap: 1.2em;
    justify-content: center;
  }

  /* ラベル内を横並びに： S ○ */
  .radio-label {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1em;
    font-size: 1em;
    cursor: pointer;
  }

  /* ラジオボタンそのもののサイズ */
  .radio-label input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    margin: 0;
    transform: scale(1.2);
  }
}

.p-product-option {
    display:none!important;
  }

.qty-flex-container {
  display: flex;
    margin-bottom: 30px;
}

.product-spec-title,.qty-label {
    width: calc(60px + 3.5vw);
    max-width: 117px;
    min-width: 70px;
}

@media screen and (max-width:767px) { 
.product-spec-title,.qty-label {
    width: 20vw;
    max-width: 165px;
}
}


@media screen and (max-width:480px) { 
.product-spec-title,.qty-label {
    width: 15vw;
}
}

.qty-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qty-controls {
  display: flex;
  align-items: center;
}

.qty-controls input.quantity-input {
  width: 50px;
}

#option_tbl {
    border-spacing: 0 10px;
    margin-bottom: 0px;
    background-color: #efefef;
    width: 100%;
}

#option_tbl th,
#option_tbl td {
  padding: 0.5em 0;
  text-align: center; 
  vertical-align: middle;
  max-width: 50px;
  line-height: 1.5;
}

#option_tbl td.cell_2 {
  text-align: center; 
  min-width: 30px; 
}


/* ラジオボタンを中央寄せ（inline-block化） */
#option_tbl td.cell_2 > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.option-table-wrapper {
  padding: 0.2em 1.8em;
  background-color: #efefef;
  display: inline-block;
   margin-bottom: 20px!important;
  width: 100%;
}
