/* ===== 商品一覧・カテゴリページ共通土台 ===== */
.flowering-status {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f9e8ed;
  color: #94405a;
  font-size: 0.75rem;
}


.search-page {
  min-width: 0;
}

.search-query {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line, #dfd2cb);
  background: #faf7f5;
}

.search-query__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: #765f55;
}

.search-query__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.search-query__form input {
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #cdbdb4;
  border-radius: 4px;
  background: #fff;
  color: #231b18;
}

.search-query__form button,
.search-query__form a,
.search-query__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid #506a52;
  border-radius: 4px;
  background: #506a52;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.search-query__form button:hover,
.search-query__form a:hover,
.search-query__btn:hover {
  opacity: 0.9;
}

.search-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #dfd2cb);
}

.search-result-head p {
  margin: 0;
}

.search-result-head strong {
  font-size: 1.125rem;
}

.search-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.875rem;
}

.search-sort a {
  color: #7e354f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}

.search-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line, #dfd2cb);
  background: #fff;
}

.search-product__image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f5f1ee;
}

.search-product__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.search-product__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.search-product__body h2 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.search-product__body h2 a {
  color: inherit;
}

.search-product__price {
  margin: auto 0 6px;
  color: #9b3e5e;
  font-size: 1.125rem;
}

.search-product__shipping {
  margin: 0 0 10px;
  color: #705f57;
  font-size: 0.75rem;
  line-height: 1.5;
}

.search-product__shipping:empty,
.search-product__meta:empty {
  display: none;
}

.search-product__bulk-discount {
  margin: 0 0 10px;
  padding: 6px 7px;
  border: 1px solid #c9bbb4;
  background: #fff;
  color: #66544c;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.search-product__favorite {
  margin-top: 10px;
  color: #873a55;
  font-size: 0.8125rem;
  text-align: center;
  text-underline-offset: 0.2em;
}

.search-product__meta {
  margin: 0 0 10px;
  color: #705f57;
  font-size: 0.8125rem;
}

.search-product__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.search-product__actions a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border: 1px solid #a34b68;
  border-radius: 3px;
  color: #873a55;
  text-align: center;
  white-space: nowrap;
}

.search-product__actions a:last-child {
  background: #a34b68;
  color: #fff;
}

.search-product__actions span[aria-disabled="true"] {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border: 1px solid #b9afaa;
  border-radius: 3px;
  background: #eeeae7;
  color: #716864;
  text-align: center;
  white-space: nowrap;
}

.search-product.is-soldout .search-product__image img {
  opacity: 0.72;
}

.search-empty {
  padding: 48px 32px;
  border: 1px solid var(--line, #dfd2cb);
  background: #fff;
  text-align: center;
}

.search-empty h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
}

.search-empty p {
  margin: 0;
}

.search-empty__tips {
  max-width: 620px;
  margin: 28px auto 0;
  padding: 24px 28px;
  background: #faf7f5;
  text-align: left;
}

.search-empty__tips h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.search-empty__tips ul {
  margin: 0;
  padding-left: 1.4em;
}

.search-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.search-empty__links a {
  padding: 10px 18px;
  border: 1px solid #637963;
  border-radius: 3px;
  color: #415643;
}

.search-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.search-pagination a,
.search-pagination span {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid #cdbdb4;
  background: #fff;
  color: #6f3047;
}

.search-pagination span[aria-current="page"] {
  border-color: #a34b68;
  background: #a34b68;
  color: #fff;
}

@media (max-width: 1200px) {
  .search-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .search-query {
    padding: 18px;
  }

  .search-query__form {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .search-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-sort {
    justify-content: flex-start;
  }

  .search-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-product__body {
    padding: 14px;
  }

  .search-product__actions {
    grid-template-columns: 1fr;
  }

  .search-empty {
    padding: 36px 20px;
  }
}

@media (max-width: 460px) {
  .search-products {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   学名特別表示用スタイル（学名トップ A～Z選択 ＆ A～Zサブカテゴリー一覧）
   ========================================================================== */
/* 学名トップ: A～Z頭文字インデックス */
.scientific-index {
  margin: 0 0 30px;
  padding: 20px;
  border: 1px solid #d9cec7;
  background: #faf7f5;
}

.scientific-index h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.scientific-index__letters {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 7px;
}

.scientific-index__letters a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid #cdbdb4;
  background: #fff;
  color: #79374e;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.scientific-index__letters a:hover {
  border-color: #a34b68;
  background: #fbf2f5;
}

@media (max-width: 900px) {
  .scientific-index__letters {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .scientific-index {
    padding: 16px;
  }

  .scientific-index__letters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* 学名A～Z一覧: 第3階層サブカテゴリー一覧グリッド */
.scientific-subcategories {
  margin: 0 0 32px;
}

.scientific-subcategories h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.scientific-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scientific-empty,
.search-empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #dfd2ca;
  background: #fffdfa;
  color: #655b56;
}

.scientific-subcategory-grid a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #d9cec7;
  background: #fff;
  color: #2c211d;
  font-size: .8125rem;
  line-height: 1.45;
  text-decoration: none;
  transition: all 0.2s ease;
}

.scientific-subcategory-grid a:hover {
  border-color: #a34b68;
  background: #fbf2f5;
}

.scientific-subcategory-grid small {
  flex: 0 0 auto;
  color: #8d4059;
}

.scientific-subcategory-grid b {
  font-weight: 500;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .scientific-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .scientific-subcategory-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 季節・花色特設ナビゲーション（kaikajiki / hanairo） ===== */
.season-category-nav {
  margin: 0 0 36px;
}

.season-category-nav__title {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.season-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.season-category-card {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid #d9cec7;
  background: #fff;
  color: #251c18;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.season-category-card:hover {
  border-color: #a34b68;
  background: #fcf7f8;
}

.season-category-card__name {
  display: block;
  font-size: 1rem;
}

.season-category-card__count {
  display: block;
  margin-top: 3px;
  color: #74625a;
  font-size: .8125rem;
}

.season-category-card__mark {
  color: #a34b68;
  font-size: 1.25rem;
}

.season-category-card--now {
  border-color: #d9a9b8;
  background: #fbf2f5;
}

.season-recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid #879a82;
  background: #f1f5ef;
  color: #243b27;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.season-recommendation:hover {
  border-color: #506a52;
  background: #e9f0e6;
}

.season-recommendation small {
  display: block;
  margin-top: 4px;
  color: #60705d;
}

.season-recommendation b:last-child {
  font-size: 1.25rem;
  color: #506a52;
}

/* 花色カラーパレット用スタイル */
.color-category-grid .season-category-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.color-swatch {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(69, 49, 42, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55);
}

.color-swatch--white { background: #fffdf8; }
.color-swatch--yellow { background: #e8ca55; }
.color-swatch--orange { background: #dc9148; }
.color-swatch--pink { background: #dc91ae; }
.color-swatch--red { background: #ad4a55; }
.color-swatch--blue { background: linear-gradient(135deg, #6388b2 0 50%, #806c9e 50%); }
.color-swatch--brown { background: linear-gradient(135deg, #3d3432 0 50%, #846451 50%); }
.color-swatch--green { background: #77906b; }
.color-swatch--bicolor { background: linear-gradient(135deg, #f5f0e9 0 50%, #c76c87 50%); }

@media (max-width: 900px) {
  .season-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .season-category-grid {
    grid-template-columns: 1fr;
  }

  .season-category-card {
    min-height: 70px;
    padding: 12px 16px;
  }
}


