/* shop-style.css — freemarketing.net 메인 홈페이지(home.html)와 디자인 통일
   폰트: Pretendard / 컬러: pink-500·600 / 이탤릭 대문자 헤드라인 + text-stroke */

:root {
  --bg: #000;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(236,72,153,0.3); /* pink-500/30 */
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --primary: var(--pink-500);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: #fff;
  font-family: "Pretendard", -apple-system, "Noto Sans KR", sans-serif;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  color: transparent;
}

/* ===== 상단 네비 (히어로 안) ===== */
.shop-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 24px 0;
}
.shop-nav-home {
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-decoration: none;
  opacity: 0.8;
}
.shop-nav-mypage {
  color: #999;
  font-size: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== 히어로 ===== */
.shop-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 30px;
}
.shop-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.95)),
              linear-gradient(135deg, #1a0a14 0%, #000 60%);
  z-index: -1;
}
.floating-img {
  position: absolute;
  right: 2%;
  top: 18%;
  width: 42%;
  max-width: 260px;
  min-width: 150px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 30px rgba(236,72,153,0.3));
}
.shop-hero-content {
  position: relative;
  z-index: 5;
  padding: 36px 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shop-eyebrow {
  color: var(--pink-500);
  font-weight: 700;
  letter-spacing: 0.4em;
  font-size: 10px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.shop-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
  max-width: 75%;
}
.shop-hero-desc {
  color: #bbb;
  font-size: 13px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0;
}

/* ===== 상품 섹션 ===== */
.shop-products-section {
  background: #000;
  padding: 40px 20px 20px;
}
.shop-section-title {
  max-width: 960px;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

#productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 0;
  max-width: 960px;
  margin: 0 auto;
}
.product-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: border-color .2s ease, transform .15s ease;
}
.product-card:hover, .product-card:active { border-color: var(--border-hover); transform: scale(0.99); }
.product-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
}
.product-info { padding: 14px; }
.product-category { font-size: 10px; color: var(--pink-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.product-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.product-price { font-size: 15px; font-weight: 900; }

/* ===== 상품 상세 ===== */
.shop-header {
  padding: calc(16px + env(safe-area-inset-top)) 20px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-header .logo { font-weight: 900; font-size: 16px; font-style: italic; }
.shop-header a { color: #999; font-size: 13px; text-decoration: none; }

#productDetail { max-width: 560px; margin: 0 auto; }
.product-detail-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
}
.product-detail-body { padding: 24px 20px; }
.product-detail-title { font-size: 1.6rem; font-weight: 900; font-style: italic; margin: 8px 0 12px; letter-spacing: -0.02em; }
.product-detail-price { font-size: 1.5rem; font-weight: 900; color: var(--pink-500); margin-bottom: 18px; }
.product-detail-desc { font-size: 14px; line-height: 1.7; color: #ccc; white-space: pre-wrap; }

.refund-policy-box {
  margin-top: 18px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  font-size: 12px;
}
.refund-policy-label { font-weight: bold; color: #f59e0b; margin-bottom: 6px; }
.refund-policy-text { color: #aaa; line-height: 1.6; margin-bottom: 8px; }
.refund-policy-box a { color: var(--pink-500); text-decoration: none; font-size: 12px; }

.terms-agree-box { padding: 0 20px 10px; font-size: 12px; color: #999; }
.terms-agree-box label { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.terms-agree-box input[type="checkbox"] { margin-top: 2px; }
.terms-agree-box a { color: var(--pink-500); text-decoration: underline; }

#buyBtn {
  display: block;
  width: calc(100% - 40px);
  margin: 10px 20px 30px;
  padding: 17px;
  background: var(--pink-600);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(219,39,119,0.3);
  transition: all .2s ease;
}
#buyBtn:hover:not(:disabled) { background: #fff; color: #000; }
#buyBtn:disabled { background: #222; color: #666; box-shadow: none; cursor: not-allowed; }

/* ===== 마이페이지 - 주문 카드 ===== */
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 18px;
  margin-bottom: 12px;
}
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-status { font-size: 11px; font-weight: bold; padding: 4px 10px; border-radius: 999px; }
.order-date { font-size: 11px; color: #777; }
.order-title { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.order-price { font-size: 16px; font-weight: 900; color: var(--pink-500); margin-bottom: 8px; }
.order-code { font-size: 11px; color: #666; }
.order-memo { font-size: 12px; color: #aaa; margin-top: 6px; border-top: 1px dashed #333; padding-top: 6px; }

.progress-stepper { display: flex; align-items: flex-start; margin-top: 16px; padding: 10px 4px; }
.progress-stepper .step { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.progress-stepper .step-dot { width: 14px; height: 14px; border-radius: 50%; background: #333; margin-bottom: 6px; }
.progress-stepper .step.step-done .step-dot { background: var(--pink-500); }
.progress-stepper .step-label { font-size: 10px; color: #777; text-align: center; }
.progress-stepper .step.step-done .step-label { color: #fff; font-weight: bold; }
.progress-stepper .step-line { flex: 1; height: 2px; background: #333; margin-top: 7px; }
.progress-stepper .step-line.step-line-done { background: var(--pink-500); }

.status-timeline { margin-top: 10px; font-size: 11px; color: #888; }
.status-timeline summary { cursor: pointer; color: var(--pink-500); font-size: 12px; }
.status-timeline .timeline-row { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dashed #262626; }

/* ===== 푸터 (home.html 패턴과 통일) ===== */
.shop-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 50px 24px calc(50px + env(safe-area-inset-bottom));
}
.shop-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.shop-footer-brand { font-size: 1.3rem; font-weight: 900; font-style: italic; margin: 0 0 8px; }
.shop-footer-tagline { color: #666; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.shop-footer-info { font-size: 11px; color: #666; line-height: 1.9; letter-spacing: 0.02em; }
.shop-footer-links { margin-top: 10px; }
.shop-footer-links a { color: #888; text-decoration: underline; margin-right: 10px; }

@media (min-width: 768px) {
  .shop-hero-title { font-size: 4rem; max-width: 60%; }
  .floating-img { top: 12%; }
  .shop-footer-inner { flex-direction: row; justify-content: space-between; }
}
