/* Base Reset & Global Styles */
body {
  font-family: "myriad-pro-semiextended", sans-serif !important;
  font-weight: 600;
  font-style: normal;
}

a {
  text-decoration: none;
  color: white;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 画像のアスペクト比を1:1に固定 */
.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* Shop layout (archive-product.php) */
.products.columns-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  max-width: 1300px;
  padding-top: 2%;
  padding-bottom: 2%;
  list-style: none;
}
h2.woocommerce-loop-product__title,
span.price {
  color: rgb(255, 255, 255);
}
span.price {
  font-weight: bold;
  font-size: 1.3rem;
}
/* パンくずリストのスタイル */
.breadcrumb-nav {
  margin: 20px auto;
  padding: 15px 0;
  max-width: 1300px;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
  font-size: 14px;
  color: #666;
  padding: 0 20px;
}

.breadcrumb-home,
.breadcrumb-category {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-home:hover,
.breadcrumb-category:hover {
  color: #fffefe;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #fafafa;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  ul.products.columns-3 {
    text-align: center;
    justify-content: center;
  }
  .breadcrumb-nav {
    margin: 15px auto;
  }

  .breadcrumb-container {
    font-size: 13px;
    padding: 0 15px;
  }

  .breadcrumb-separator {
    margin: 0 5px;
  }
}
@media (max-width: 430px) {
  ul.products.columns-3 img {
    width: 180px;
    height: 180px;
  }
}
/* 初期状態ではタイトルと価格を非表示に */
ul.products.columns-3 li.product h2.woocommerce-loop-product__title,
ul.products.columns-3 li.product span.price {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px); /* 少し下にずらしておく */
  pointer-events: none; /* hoverできないように */
}

/* imgにホバーした時、親要素（li.product）内のタイトルと価格を表示 */
ul.products.columns-3 li.product:hover h2.woocommerce-loop-product__title,
ul.products.columns-3 li.product:hover span.price {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

label.screen-reader-text,
.category-label {
  color: white;
}
