/* 商品詳細 */

body{
  /* background-color: #007bff1c; */
}

.product{
  gap: 60px; /* 子要素の間に20pxのスペース */
}

.product-image{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-main-image img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  grid-template-rows: repeat(2, auto);   /* 2行 */
  gap: 10px; /* 画像の間に隙間を追加（お好みで） */
}

.product-thumbnails img {
  width: 100px;
  height: 100px;
  margin: 0 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.product-thumbnails img:hover {
  border-color: #007bff;
}

/* レスポンシブデザイン スマホ*/
@media screen and (max-width: 480px) {
  .d-flex{
      display: block !important;
  }

  .product-thumbnails img{
      margin: 0;
  }
}

/* 商品説明 */

.product-title,
.filter,
.discount,
.brand,
.color,
.pattern,
.material-fabric,
.season{
  border-bottom: 1px solid rgb(212, 212, 212);
}

.label{
  padding-right: 20px;
  padding-left: 20px;
  font-size: 20px;
  font-weight: bold;
}

.brand-name,
.color-name,
.pattern-name,
.material-fabric-name,
.season-name{
  text-align: center;
  padding-left: 10px;
  font-size: 20px;
}


/* 機能 */
.filter-label{
  padding-right: 20px;
  padding-left: 20px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square {
  width: 60px;
  height: 60px;
  background-color: #f6ff77;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size:12px;
  margin: 10px;
  border-radius: 10px; /* 四角形を少し丸みを持たせる */
}

/* 値段 */
.discount{
  margin-bottom: 20px;
}

.price-tax-in{
  font-size: 8px;
}

.discount-price{
  color: red;
  font-size: 26px;
  font-weight: bold;
}

.discount-tax-in{
  font-size: 14px;
}


.double-strikethrough {
  position: relative;
  display: inline-block;
  color: black;
}

.double-strikethrough::before,
.double-strikethrough::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: red;
}

.double-strikethrough::before {
  top: 40%; /* 上の線 */
}

.double-strikethrough::after {
  top: 60%; /* 下の線 */
}


.product_details_attribute select{
  width: 300px;
}


/* 在庫 */

.stock{
  padding: 20px;
}

.stock-status {
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  color: white;
  margin: 5px 0;
}

.in-stock {
  background-color: #28a745; /* 緑 */
}

.low-stock {
  background-color: #ffc107; /* 黄色 */
  color: black;
}

.out-of-stock {
  background-color: #dc3545; /* 赤 */
}


/* 説明 */
.explanation{
  padding: 20px;
}


/* レスポンシブデザイン スマホ*/
@media screen and (max-width: 480px) {
  .filter{
    display: flex !important;
  }

  .product_details_attribute select{
    width: 200px;
  }
}



/* タブ */

.product-tabs {
  margin: 0 auto;
}

.product-tabs input[type="radio"] {
  display: none;
}

.product-tabs label {
  display: inline-block;
  padding: 10px 100px;
  background: #ddd;
  cursor: pointer;
}

.product-tabs input[type="radio"]:checked + label {
  background: #aaa;
}

.content {
  display: none;
  padding: 20px;
  border: 1px solid #ddd;

}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
  display: block;
}

.product-note{
  line-height: 1.8;
  padding-left: 18px;
}

.product-note li{
  list-style: disc;
}

/* ボタン */
.button-area{
  display: flex;
  justify-content: center;
}

.button-area button {
  margin: 10px;
}

/* レスポンシブデザイン スマホ*/
@media screen and (max-width: 480px) {

  .product-tabs label {
    padding: 10px 10px;
  }
  button{
    width: 150px !important;
  }

}