/* Products - Modern Design System */

/* Archive Product Page */
#hero-banner {
  background: linear-gradient(135deg, #d3b58c 0%, #a8926a 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

#hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-medium);
  margin: 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
  #hero-banner {
    padding: 60px 20px;
  }
  
  .hero-content h1 {
    font-size: var(--fs-h3);
  }
}

/* Category Section */
.category-section {
  padding: 48px 0;
}
@media (min-width: 768px) {
  .category-section { padding: 64px 0; }
}
.category-section:not(:last-child) {
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 0;
}
.category-section .section-title {
  text-align: center;
  margin-bottom: 28px;
}
.category-section .section-title .underline {
  display: block;
  width: 64px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--brand-gold, #c19a3d);
}

/* Archive header (タイトル中央) */
.archive-header {
  text-align: center;
  margin-bottom: 12px;
  padding: 0;
  background: none;
}
.archive-header .page-title {
  display: inline-block;
  margin: 0 auto;
}
.archive-header .page-title .underline {
  display: block;
  width: 64px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--brand-gold, #c19a3d);
}
.archive-description {
  text-align: center;
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--brand-ink-soft, #5a4f3e);
  font-size: 14px;
  line-height: 1.7;
}

/* Section Title Enhancement */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 32px;
}

.section-title .underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #d3b58c 0%, #a8926a 100%);
  border-radius: 3px;
}

/* Item Grid - Modern Card Design */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .item-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.item {
  position: relative; /* タグの絶対配置の基準点 */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.item-image {
  position: relative; /* タグの配置基準 */
}

.item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

.item-image {
  aspect-ratio: 4/3;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.item-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.05) 100%);
  pointer-events: none;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item:hover .item-image img {
  transform: scale(1.05);
}

/* ============================================================
 * 商品ステータスバッジ (EC購入可能 / 店舗限定 / WEB予約 / 電話予約)
 * .item-image の左上に重ねて表示。複数バッジは縦積み。
 * ============================================================ */
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.product-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  color: #fff;
  background: rgba(60, 42, 15, 0.85);
  backdrop-filter: blur(2px);
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.product-badge--ec {
  background: var(--brand-gold-deep, #a07f2c);
}
.product-badge--store {
  background: rgba(60, 42, 15, 0.78);
}
.product-badge--web {
  background: #3a7d44; /* ゴールド系と区別する深緑 */
}
.product-badge--tel {
  background: #6b6b6b;
}
@media (min-width: 768px) {
  .product-badge {
    padding: 4px 12px;
    font-size: 12px;
  }
}

/* ============================================================
 * 商品詳細ページ EC購入ボタン (single-product.php)
 *   .ec-purchase-btn = ゴールド大型 pill。
 *   オンラインショップへの強い CTA として WEB予約ボタンと同等の目立ち方。
 * ============================================================ */
.ec-purchase-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 16px auto 12px;
  padding: 14px 24px;
  background: var(--brand-gold, #c19a3d);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(193, 154, 61, 0.25);
  transition: background 0.18s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
  min-height: 56px;
}
.ec-purchase-btn:hover,
.ec-purchase-btn:focus-visible {
  background: var(--brand-gold-deep, #a07f2c);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 127, 44, 0.32);
  text-decoration: none !important;
}
.ec-purchase-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}
.ec-purchase-btn__icon svg {
  width: 18px;
  height: 18px;
}
.ec-purchase-btn__label {
  display: block;
  flex: 1 1 auto;
  text-align: center;
}
.ec-purchase-btn__sub {
  display: none;
}
@media (min-width: 600px) {
  .ec-purchase-btn {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .ec-purchase-btn__label {
    flex: 1 1 auto;
    text-align: center;
    line-height: 1.2;
  }
  .ec-purchase-btn__sub {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    flex: 0 0 auto;
    line-height: 1;
  }
}

/* item-tag (商品詳細上部のラベル群) — 店舗限定/EC購入可能のスタイル統一 */
.item-tag.ec-item {
  background: var(--brand-gold-deep, #a07f2c);
  color: #fff;
}
.item-tag.store-only-item {
  background: rgba(60, 42, 15, 0.78);
  color: #fff;
}

.item-title {
  padding: 12px;
  background: #fff;
  flex: 1;
}

.item-title h3 {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Item Tags - Compact design, overlay on image (左上配置、控えめなスタイル - 3枚目の画像スタイル) */
.item .item-tags {
  position: absolute; /* 画像の上にオーバーレイ */
  top: var(--sp-8);
  left: var(--sp-8); /* 左上に配置 */
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  z-index: 2;
}

/* item-title内のタグも画像の上に表示 */
.item .item-title .item-tags {
  position: absolute;
  top: var(--sp-8);
  left: var(--sp-8);
  z-index: 2;
  margin: 0; /* マージンをリセット */
}

.item-tag {
  padding: var(--sp-3) var(--sp-8); /* より控えめなパディング: 3px 8px */
  border-radius: var(--radius-md); /* 少し丸みを帯びた角（8px） */
  font-size: var(--fs-xsmall); /* 11px - コンパクトだが読みやすい */
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  text-transform: none; /* 大文字変換を解除 */
  color: #fff;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.12); /* より控えめな影 */
  transition: all 0.2s ease;
  display: inline-block;
}

.store-only-item {
  background: linear-gradient(135deg, rgba(211, 181, 140, 0.95) 0%, rgba(168, 146, 106, 0.95) 100%);
  backdrop-filter: blur(4px);
  min-width: auto;
  max-width: 85px; /* 3枚目の画像に合わせたコンパクトな幅 */
  /* 色は維持（グラデーションのゴールドと白文字） */
}

.new-item {
  background: linear-gradient(135deg, #ff5573 0%, #ff3355 100%);
}

.memorial-item {
  background: linear-gradient(135deg, #ff5573 0%, #ff3355 100%);
}

.ec-item {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.telreserve-item {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Button Enhancement */
.more-center {
  text-align: center;
  margin-top: 40px;
}

.more-center .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #d3b58c 0%, #a8926a 100%);
  color: #fff;
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(211,181,140,0.3);
  text-decoration: none;
}

.more-center .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211,181,140,0.4);
  opacity: 1;
}

.more-center .btn::after {
  content: '›';
  font-size: var(--fs-lg);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.more-center .btn:hover::after {
  transform: translateX(4px);
}

/* Single Product Page - Centered Layout */
section.item {
  padding: var(--sp-40) var(--sp-20);
  display: flex;
  justify-content: center;
}

.item-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-32);
}

/* Text content stays left-aligned, but container is centered */
.item-details {
  text-align: left;
}

@media (min-width: 768px) {
  .item-content {
    grid-template-columns: 1fr 1fr;
  }
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info h1 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  margin-bottom: 20px;
}

/* Product Actions */
.memorial,
.telreserve-link,
.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 8px 8px 8px 0;
}

.memorial {
  background: linear-gradient(135deg, #d3b58c 0%, #a8926a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(211,181,140,0.3);
}

.memorial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211,181,140,0.4);
  color: #fff;
  text-decoration: none;
}

.telreserve-link {
  background: #f8f9fa;
  color: var(--color-text);
  border: 2px solid #e6e6e6;
}

.telreserve-link:hover {
  background: #e9ecef;
  border-color: var(--color-beige);
}

.order-button {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
  color: #fff;
}

/* Price */
.price {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-beige);
  margin: 16px 0;
}

/* Product Variants */
.product-variants {
  background: #f8f9fa;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.pv-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  margin-bottom: 16px;
  color: var(--color-text);
}

.pv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pv-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.pv-size {
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  color: var(--color-text);
}

.pv-price {
  font-weight: var(--fw-medium);
  color: var(--color-beige);
  font-size: var(--fs-base);
}

.pv-desc {
  color: var(--color-muted);
  font-size: var(--fs-small);
  grid-column: 3 / -1;
}

@media (max-width: 640px) {
  .pv-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .pv-desc {
    grid-column: 1 / -1;
  }
}

/* Ingredients */
.ingredients {
  font-size: var(--fs-small);
  color: var(--color-muted);
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #ffc107;
  margin: 16px 0;
}

/* Product Description */
.product-description {
  line-height: 1.8;
  color: var(--color-text);
  margin-top: 20px;
}

.product-description p {
  margin-bottom: 1em;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #hero-banner {
    padding: 40px 16px;
  }
  
  .item-grid {
    gap: 12px;
  }
  
  .item-title h3 {
    font-size: var(--fs-small);
  }
  
  section.item {
    padding: 32px 16px;
  }
  
  .product-info h1 {
    font-size: var(--fs-xl);
  }
  
  .price {
    font-size: var(--fs-lg);
  }
}

/* Product Variants */
.product-variants{margin:12px 0 16px; padding:10px; border:1px solid #eee; border-radius:8px; background:#fff}
.pv-title{font-size: var(--fs-base); margin:0 0 8px;}
.pv-list{list-style:none; padding:0; margin:0; display:grid; gap:6px}
.pv-row{display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; border-bottom:1px dashed #eee; padding-bottom:6px}
.pv-row:last-child{border-bottom:none}
.pv-size{font-weight: var(--fw-medium)}
.pv-price{font-weight: var(--fw-medium)}
.pv-desc{color: var(--color-muted); font-size: var(--fs-small)}
@media (max-width: 480px){ .pv-row{grid-template-columns:1fr 1fr; row-gap:4px} .pv-desc{grid-column:1/-1} }
