/* =============================================
   shop.css — 商品一覧ページ
   ============================================= */

/* ----- 共通ページFV ----- */
.page-fv {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-fv__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.6);
}

.page-fv__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.page-fv__title {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 36px;
  line-height: 55px;
  color: var(--color-white);
}

.page-fv__subtitle {
  font-family: var(--font-playfair);
  font-weight: 400;
  font-size: 20px;
  line-height: 15px;
  color: var(--color-gold);
}

/* ----- 商品一覧レイアウト ----- */
.shop-layout {
  display: flex;
  gap: 60px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px var(--section-padding-x) 100px;
}

/* ----- サイドバー ----- */
.shop-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.shop-sidebar__section {
  margin-bottom: 40px;
}

.shop-sidebar__title {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gold);
}

.shop-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-sidebar__list li a {
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-sidebar__list li.is-current a {
  color: var(--color-gold);
  font-weight: 600;
}

.shop-sidebar__count {
  font-size: 12px;
  color: #999;
}

/* ----- 商品グリッド ----- */
.shop-main {
  flex: 1;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 26px;
  margin-top: 20px;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-product-card__image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-product-card__name {
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
}

.shop-product-card__price {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
}

.shop-product-card__price del {
  color: #999;
  margin-right: 8px;
}

.shop-product-card__price ins {
  text-decoration: none;
}

/* WooCommerce ordering */
.woocommerce-ordering {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.woocommerce-ordering select {
  font-family: var(--font-mincho);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--color-gold-light);
  background-color: var(--color-bg-cream);
  color: var(--color-text);
}

/* WooCommerce pagination */
.woocommerce-pagination {
  margin-top: 60px;
  text-align: center;
}

.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-playfair);
  font-size: 16px;
  color: var(--color-text);
  border: 1px solid var(--color-gold-light);
}

.woocommerce-pagination ul li span.current {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.shop-empty {
  font-family: var(--font-mincho);
  font-size: 16px;
  color: #999;
  text-align: center;
  padding: 80px 0;
}

/* ----- お問い合わせリンク ----- */
.shop-contact {
  background-color: var(--color-bg-cream);
}

.shop-contact__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 80px var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-contact__title {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  color: var(--color-primary-dark);
}

.shop-contact__desc {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  margin-top: 8px;
}

/* ----- レスポンシブ ----- */
@media (max-width: 1024px) {
  .shop-layout {
    flex-direction: column;
    gap: 30px;
  }

  .shop-sidebar {
    width: 100%;
    display: flex;
    gap: 30px;
  }

  .shop-sidebar__section {
    flex: 1;
    margin-bottom: 0;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-contact__inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .page-fv {
    height: 260px;
  }

  .page-fv__title {
    font-size: 28px;
    line-height: 40px;
  }

  .shop-sidebar {
    flex-direction: column;
    gap: 20px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .shop-product-card__name {
    font-size: 14px;
  }

  .shop-product-card__price {
    font-size: 14px;
  }
}
