/* ==========================================================
   Shop A24-style overrides (shop/index.html のみ読み込み)
   style.css より後にロードされ、同specificityではこちらが勝つ。
   他のページには影響しない（このファイルは shop ページのみ link）。
   ========================================================== */

/* ==========================================================
   Shop page: Sticky footer layout
   Footer を画面下端に固定し、コンテンツが短い場合は
   画面下端、長い場合はコンテンツの後ろに配置する。
   ========================================================== */

/* 1. body を flex column にして sticky footer 構造を構築 */
html,
body.shop-page {
  min-height: 100vh;
}
body.shop-page {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* 2. .shop が残りを占有（flex: 1 0 auto = 伸展・収縮・固定幅） */
.shop-page .shop {
  flex: 1 0 auto;
  background: #ffffff;
  padding: 0;
  padding-bottom: 64px;
}

/* 3. footer は伸縮せず、auto margin で .shop と押し合う */
.shop-page .footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 24px 0;
  margin: 0;
  min-height: auto;
  height: auto;
  background: #0a0a0f;
  border-top: 1px solid var(--border);
}

/* Shop page: header black bar (height only) */
.shop-page .navbar {
  height: 56px;
  background: #0a0a0f;
}
.shop-page .navbar.scrolled {
  background: #0a0a0f;
}
.shop-page .nav-container {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Shop page: Footprint logo section (white background, independent from header) */
.shop-page .fp-hero {
  width: 100%;
  display: block;
  background: #ffffff;
  padding: 24px 0 16px;
  text-align: center;
  position: static;
  margin-top: 56px;
}
.shop-page .fp-hero img {
  width: 75%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 1;
  mix-blend-mode: normal;
  z-index: auto;
}

/* Shop page: hide .page-header entirely (all content display:none) */
.shop-page .page-header {
  display: none;
  padding: 0;
}




.shop-page .footer .container {
  padding-top: 0;
  padding-bottom: 0;
  height: 56px;
}
.shop-page .footer-content {
  align-items: center;
  height: 56px;
  gap: 0;
  flex-wrap: nowrap;
}
.shop-page .footer-brand {
  gap: 10px;
}
.shop-page .footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

/* ---- Filter row（左寄せ + FILTERS ラベル） ---- */
.shop-filters {
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 56px;
}
.shop-filters-label {
  display: none;
}

/* ピル型ボタン → A24 のテキスト型 */
.shop-filters .filter-btn {
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a29b;
}
.shop-filters .filter-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #16161a;
}
.shop-filters .filter-btn.active {
  background: transparent;
  border-color: transparent;
  color: #16161a;
  font-weight: 700;
}
.shop-filters .filter-btn sup {
  font-size: 0.62em;
  margin-left: 3px;
  color: #b8b7af;
}
.shop-filters .filter-btn.active sup {
  color: #16161a;
}

.shop-sort-btn {
  display: none;
}

/* ---- Grid → A24 の4カラム ---- */
.shop-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 28px;
}

/* ---- Card → フラット（背景・枠・角丸・グローなし） ---- */
.shop-card {
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
  transition: none;
}

/* Ensure child elements inherit/override parent's pointer cursor */
.shop-card img,
.shop-card-image {
  cursor: pointer;
}
.shop-card.visible {
  opacity: 1;
  transform: none;
}
.shop-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* ---- 画像タイル（白地・A24 の商品写真風） ---- */
.shop-card-image {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 2px;
}
.shop-card-img {
  opacity: 0.96;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.shop-card:hover .shop-card-img {
  transform: scale(1.02);
  opacity: 1;
}

/* ---- 画像下のテキスト → 最小限・左寄せ・ライト背景用ダーク ---- */
.shop-card-info {
  padding: 14px 2px 0;
}
.shop-card-title {
  color: #16161a;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.shop-card-desc,
.shop-card-sizes,
.shop-card-category {
  display: none;
}
.shop-card-footer {
  justify-content: flex-start;
}
.shop-card-price {
  color: #16161a;
  font-size: 0.85rem;
  font-weight: 400;
}
.shop-card-price .original {
  color: #a3a29b;
}

/* ---- Badge → 最小限の黒チップ（タイル左下） ---- */
.shop-badge {
  top: auto;
  right: auto;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  background: #16161a;
  border-radius: 2px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f6f3;
}

/* ---- Archive / Sold Out（A24 風） ---- */
.shop-card-archive {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a29b;
  margin-bottom: 5px;
}
.shop-card-soldout {
  font-size: 0.85rem;
  color: #a3a29b;
}

/* ---- Responsive（style.css の media rules を上書き） ---- */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .page-header {
    padding: 80px 0 8px;
  }
  .shop {
    padding: 48px 0 96px;
  }
  .shop-filters {
    gap: 18px;
    margin-bottom: 40px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 18px;
  }
}
@media (max-width: 480px) {
  .page-header {
    padding: 64px 0 4px;
  }
  .shop {
    padding: 32px 0 72px;
  }
  .shop-filters {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .shop-sort-btn {
    margin-left: 0;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    gap: 40px 0;
  }
}
