/* ===== 처방받기 버튼 (비주얼) ===== */
.btn-prescription {
  position: absolute;
  top: 390px;
  left: 135px;
  padding: 12px 32px;
  border: 2px solid #2c2a29;
  color: #2c2a29;
  font-family: 'Patrick Hand', cursive;
  font-size: 20px;
  letter-spacing: 3px;
  transition: all .25s;
}
.btn-prescription:hover {
  background-color: #2c2a29;
  color: #C7F4DA;
}

/* ===== 처방 민화 섹션 ===== */
.prescription {
  padding: 120px 0;
  background-color: #f6f5ef;
  scroll-margin-top: 150px;
}
.prescription__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.prescription__desc {
  font-size: 15px;
  color: #888;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

/* 카드 그리드 */
.prescription__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}
.pcard {
  background-color: #fff;
  border: 1px solid #e5e0d5;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.pcard__image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #f0ece3;
}
.pcard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.pcard:hover .pcard__image img {
  transform: scale(1.04);
}
.pcard__body {
  padding: 24px;
}
.pcard__tag {
  display: block;
  font-size: 11px;
  color: #c0392b;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.pcard__title {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.pcard__quote {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
  border-left: 2px solid #e0dbd0;
  padding-left: 12px;
}
.pcard__prescription {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

/* 스토어 안내 */
.prescription__store {
  text-align: center;
  padding: 40px;
  border: 1px solid #e5e0d5;
  background-color: #fff;
}
.prescription__store p {
  font-size: 14px;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.prescription__btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #2c2a29;
  color: #C7F4DA;
  font-family: 'Gowun Dodum', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  transition: background-color .3s;
}
.prescription__btn:hover {
  background-color: #c0392b;
}

/* ===== 카드 모달 & 홀로그래픽 ===== */
.card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(6px);
}
.card-overlay.active { opacity: 1; }
.card-overlay::after {
  content: 'ESC / 바깥 클릭으로 닫기';
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  font-family: 'Gowun Dodum', sans-serif;
  white-space: nowrap;
}
.card-modal-wrapper {
  width: 340px;
  transform: scale(0.85);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  position: relative;
}
.card-overlay.active .card-modal-wrapper { transform: scale(1); }
.card-modal-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  user-select: none;
  pointer-events: none;
}
.holo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  mix-blend-mode: screen;
  border-radius: 16px;
}
