.input-prepend.input-append input {
  font-size: 24px;
  padding-top: 11px;
  padding-bottom: 11px;
  width: 100px;
  text-align: right;
}
.product-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px; /* 価格とオプションの間に余白 */
}

.product-info dl {
  display: flex;
  margin-bottom: 10px;
}

.product-info dt {
  width: 120px;
  font-weight: bold;
}

.product-info dd {
  margin: 0;
}

.discount {
  color: red;
  font-weight: bold;
  margin-left: 10px;
}



.flex{
display: flex;

}
.title{
font-size:20px;
}
.stock_error {
  color: #DB5656;
}
#product{
margin-top:160px;

}
.main-product-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;
    border:0;
}

.thumbnail-image {
  width: 100%;
  max-width: 120px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border 0.3s;
}
.option{
margin-left:30px;
  width:68%;
}
.thumbnail-list {
  display: flex;
  flex-wrap: wrap;        
  justify-content: flex-start; 
  padding: 0;
  margin: 0;
  list-style: none;
}
.thum {
  width: 16.6666%; 
  text-align: center;
}

.image{
width:32%;
}
.thumbnail-image:hover {
  border: 2px solid #444;
}
.product-option-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.option-block {
  flex: 1;
}

.option-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}
.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width:100%;

}





.option-label {
  display: inline-block;
  position: relative;
  
}

.option-label input[type="radio"] {
  display: none;
}

.option-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 150px;
  background-color: #f1f1f1;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.option-label input[type="radio"]:checked + .option-box {
  background-color: #007bff;
  color: #fff;
  border-color: #444;
}

.option-box:hover {
  border-color: #444;
}

.option-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.option-price {
  font-size: 0.9em;
  color: #444;
}

.option-stock {
  font-size: 0.8em;
  margin-top: 2px;

}

.stock-yes {
  color: green;
}

.stock-no {
  color: red;
}

.out-of-stock {
  opacity: 0.3;
  cursor: not-allowed;
    background: #f9f9f9;
}
.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.btn-qty {
  background: #eee;
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  outline: none;
}

.btn-qty:hover {
  background: #ddd;
}

.input-qty {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  padding: 10px;
  background: white;
}

.unit-label {
  font-weight: bold;
  font-size: 18px;
}

.purchase-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

}

.btn-modern {
  margin-top:15px;
  width:100%;
    display: flex;
  justify-content: center;
  background: #4f4f4f;
  color: white;
  font-size: 18px;
  padding: 20px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  
}

.btn-modern:hover {
  background: #383838;
  transform: translateY(-1px);
}

.btn-modern.quick-order {
  background: #28a745;
}

.btn-modern.quick-order:hover {
  background: #1e7e34;
}

.btn-modern.sold-out,
.btn-modern.login-only {
  background: #ccc;
  cursor: not-allowed;
  color: #666;
}



.option-label {
  width:20%;
  display: inline-block;
  margin: 5px;
  padding: 20px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: 0.2s;
  user-select: none;
}

.option-label input[type="radio"] {
  display: none;
}

.option-label.selected {
  background: #4f4f4f;
  color: #fff;
  border-color: #4f4f4f;
  font-weight: bold;
}

@media (max-width: 768px) {
  .product-order-exp{
  font-size:15px;
  }
  #product{
margin-top:130px;

}
  
  .thum{
  width: 25%;
}
  .btn-modern {
  margin-top:15px;
  padding: 30px 30px;
}
  .input-qty{
      padding: 20px 10px;
  }
.btn-qty {
  background: #eee;
  padding: 20px 20px;
  }
  .flex {
    flex-direction: column;
  }
  .option{
margin-left:0px;
  width:100%;
}
.image{
  width:100%;
  margin-bottom:20px;
}
  .product-info-block{
  font-size:20px;
  }
  #product{
padding:20px;
}
.option-label {

    width:48%;
  display: inline-block;
  margin: 0;
    box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
    background: #ffffff;
   padding-top: 20px;
  padding-bottom: 20px;
  transition: 0.2s;
  user-select: none;
}

}

