/* Page-specific styles for plate.html */

/* Override section spacing for plate page only */
.section { padding: clamp(90px, 20vw, 180px) 0; padding-top: 80px; }

/* 共通設定 */
.hero-media {
  min-height: 48vh;
  background-color: #26221e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ページごとの背景画像 */
.page-plate .hero-media {
  background-image: url('img/plate_main.png');
}

.page-cup .hero-media {
  background-image: url('img/cup_main.png');
}

.page-flowervase .hero-media {
  background-image: url('img/flowervase_main.png');
}


/* Fade from left to transparent toward center over the hero */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 20%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.00) 60%
  );
  pointer-events: none;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  background: #f3efe6;
  border: 1px solid #ece6db;
  border-radius: 4px;
  padding: 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.product-media {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

/* Placeholder box for images with '##' */
.product-media .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e8e3d9;
  color: #6b6b6b;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.1em;
}

.product-name {
  margin: 0;
  font-size: 18px;
  color: #4a4742;
}
.product-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-retail {
  font-size: 0.9em;
  color: #888;
  text-decoration: line-through;
}

.price-selling {
  font-size: 1.05em;
  font-weight: 600;
  color: #222;
}

/* モーダル価格 */
.modal-price-retail {
  text-decoration: line-through;
  color: #8c857b;
  font-size: 14px;
}

.modal-price-selling {
  font-size: 18px;
  font-weight: 700;
  color: #4a4742;
}

/* Cart link row on listing page */
.cart-actions { display: flex; justify-content: flex-end; margin: 0 0 12px; }

/* ==========================
   Product Modal (Overlay)
   ========================== */
.product-modal[hidden] { display: none !important; }
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.5);
  padding: 24px;
}

.product-id {
  margin: 2px 0 4px;
  font-size: 11px;
  color: #9a948a;          /* やや薄めのグレー */
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.product-modal .modal-card {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ece6db;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee6dc;
}
.modal-title { margin: 0; font-size: 20px; color: #3a362f; }
.modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #6b6b6b;
}
.modal-body { padding: 30px; display: grid; gap: 16px; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  width: min(480px, 100%);
  margin: 0 auto;
}
.carousel-viewport { width: 100%; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide {
  min-width: 100%;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carousel-slide .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #e8e3d9;
  color: #6b6b6b;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .1em;
}
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #c9c1b7; border: none; padding: 0; cursor: pointer;
}
.carousel-dot.active { background: #6f7f63; }

/* Description */
.modal-desc {
  margin: 0;
  color: #4a4742;
  line-height: 1.8;
}
.modal-price {
  margin: 0;
  color: #6a625a;
  font-weight: 700;
  text-decoration: none;
}
.modal-id{
  margin: 0 0 4px;
  font-size: 12px;
  color: #8a847c;
  letter-spacing: .04em;
}

.modal-actions { display: flex; justify-content: center; }
.modal-actions .modal-order { min-width: 300px; }

@media (max-width: 760px) {
  .modal-body { padding: 12px; gap: 12px; }
}

/* ==========================
   Usage Images (below hero)
   ========================== */
.usage-note {
  color: #6a625a;
  background: #f7f3ec;
  border: 1px solid #ece6db;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.usage-slider { position: relative; }
.usage-viewport { overflow: hidden; border-radius: 8px; }
.usage-track { display: flex; transition: transform .5s ease; }
.usage-slide { min-width: 100%; }
.usage-slide img { width: 100%; height: auto; display: block; border-radius: 8px; }
.usage-nav { position: absolute; top: 50%; transform: translateY(-50%); border: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.9); box-shadow: 0 6px 16px rgba(0,0,0,.18); cursor: pointer; }
.usage-nav.prev { left: 10px; }
.usage-nav.next { right: 10px; }
.usage-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.usage-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: #c9c1b7; cursor: pointer; padding: 0; }
.usage-dots button.active { background: #6f7f63; }

@media (max-width: 760px) {
  .usage-nav { width: 32px; height: 32px; background: rgba(255,255,255,.92); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  /* Stronger, wider left-to-center fade for mobile hero */
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(0,0,0,0.68) 0%,
      rgba(0,0,0,0.48) 30%,
      rgba(0,0,0,0.22) 60%,
      rgba(0,0,0,0.00) 85%
    );
  }
  .catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .catalog { grid-template-columns: 1fr; }
}
