/* LoveiMag 官網風格公開頁（shop / 提案） */
:root {
  --lm-teal: #1cdbcd;
  --lm-teal-dark: #12b8ab;
  --lm-teal-soft: rgba(28, 219, 205, 0.14);
  --lm-ink: #1a1a1a;
  --lm-muted: #666;
  --lm-line: #e8e8e8;
  --lm-bg: #f7f9fa;
}

.shop-body {
  background: var(--lm-bg);
  min-height: 100vh;
  color: var(--lm-ink);
  font-family: 'Microsoft JhengHei', '微軟正黑體', sans-serif;
}

/* 官網式頂部導覽 */
.lm-topnav {
  background: #fff;
  border-bottom: 1px solid var(--lm-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lm-topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lm-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--lm-ink);
  font-weight: 700;
  margin-right: auto;
}
.lm-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.lm-logo span { font-size: 14px; }
.lm-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
}
.lm-nav-links a {
  color: #444;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.lm-nav-links a:hover { background: var(--lm-teal-soft); color: var(--lm-teal-dark); }
.lm-nav-links a.active {
  background: var(--lm-teal-soft);
  color: var(--lm-teal-dark);
  font-weight: 600;
}
.lm-nav-cta {
  background: var(--lm-teal) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 16px !important;
}
.lm-nav-cta:hover { background: var(--lm-teal-dark) !important; color: #fff !important; }

.shop-header {
  padding: 28px 20px 32px;
  background: linear-gradient(135deg, var(--lm-teal) 0%, #14c4b8 55%, #0fa89e 100%);
  color: #fff;
}
.shop-header-inner { max-width: 1100px; margin: 0 auto; }
.shop-brand {
  display: none; /* 改由頂部 Logo 呈現 */
}
.shop-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.shop-lead {
  color: rgba(255,255,255,0.92);
  max-width: 36em;
  font-size: 15px;
}
.shop-header-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-header-links a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.shop-header-links a:hover { background: rgba(255,255,255,0.15); }

.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .shop-main { grid-template-columns: 1fr; }
  .lm-nav-links { width: 100%; }
  .lm-logo { margin-right: 0; }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.shop-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--lm-teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 219, 205, 0.2);
}
.shop-card-media {
  aspect-ratio: 16/10;
  background: #e8f8f6;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  text-align: left;
}
.shop-card-media:focus-visible {
  outline: 3px solid var(--lm-teal);
  outline-offset: -3px;
}
.shop-card-media .shop-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,0.22);
  font-size: 22px;
  pointer-events: none;
}
.shop-card-media img,
.shop-card-media video,
.shop-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lm-teal-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.shop-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.shop-card-body h2 { font-size: 1.1rem; margin-bottom: 6px; color: var(--lm-ink); }
.shop-card-body p { font-size: 13px; color: var(--lm-muted); flex: 1; }
.shop-price { color: var(--lm-teal-dark); font-weight: 700; margin: 8px 0 !important; font-size: 1.05rem; }
.shop-list-price { text-decoration: line-through; color: #999; font-weight: 400; margin-right: 6px; font-size: 0.9em; }
.shop-card-actions { display: flex; gap: 8px; margin-top: 8px; }

.shop-body .btn-primary {
  background: var(--lm-teal);
  color: #fff;
  border: none;
}
.shop-body .btn-primary:hover { background: var(--lm-teal-dark); }
.shop-body .btn-secondary {
  background: #fff;
  color: var(--lm-teal-dark);
  border: 1px solid var(--lm-teal);
}
.shop-body .btn-secondary:hover {
  background: var(--lm-teal-soft);
  color: var(--lm-teal-dark);
}

.shop-cart {
  position: sticky;
  top: 72px;
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.shop-cart h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--lm-ink); }
.shop-cart-row {
  display: grid;
  grid-template-columns: 1fr 70px auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.shop-total { font-weight: 700; margin: 12px 0; color: var(--lm-teal-dark); }
.shop-detail-media {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.shop-detail-media img,
.shop-detail-media video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 480px);
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}

.lm-footer {
  background: #fff;
  border-top: 1px solid var(--lm-line);
  padding: 28px 16px 36px;
  margin-top: 24px;
}
.lm-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--lm-muted);
}
.lm-footer a { color: var(--lm-teal-dark); text-decoration: none; margin-right: 12px; }
.lm-footer a:hover { text-decoration: underline; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.media-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
}
.media-thumb {
  aspect-ratio: 16/10;
  background: #e8f8f6;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 6px;
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-check-grid { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.media-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.need-tags { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.need-tags label { font-weight: 400; }
.ml-2 { margin-left: 8px; }
.mb-2 { margin-bottom: 12px; }

.shop-body .q-modal { border-top: 4px solid var(--lm-teal); }
.shop-body .status-badge.confirmed { border-color: var(--lm-teal); color: var(--lm-teal-dark); }

.shop-detail-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px 22px 16px;
}
.shop-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.shop-modal-close:hover { color: #333; }
.shop-detail-summary {
  color: #595959;
  margin: 4px 0 12px;
  font-size: 14px;
}
.shop-gallery { margin: 0 0 16px; }
.shop-gallery-stage {
  background: #0f1418;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-gallery-stage img,
.shop-gallery-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f1418;
}
.shop-gallery-empty {
  color: rgba(255,255,255,0.65);
  padding: 24px;
  text-align: center;
}
.shop-embed {
  width: 100%;
  height: 100%;
}
.shop-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  min-height: 240px;
}
.shop-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.shop-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eef3;
  cursor: pointer;
  position: relative;
}
.shop-thumb.active { border-color: var(--lm-teal); }
.shop-thumb img,
.shop-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,0.28);
  font-size: 14px;
  pointer-events: none;
}
.shop-detail-desc {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.shop-detail-desc-inner ul { padding-left: 1.2em; margin: 8px 0; }

.media-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.media-pick {
  display: flex;
  flex-direction: column;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  position: relative;
  margin: 0;
  font-weight: 400;
}
.media-pick.is-on {
  border-color: var(--lm-teal, #1cdbcd);
  box-shadow: 0 0 0 2px rgba(28,219,205,0.2);
}
.media-pick input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
}
.media-pick-thumb {
  aspect-ratio: 16/10;
  background: #e8f8f6;
  position: relative;
  overflow: hidden;
}
.media-pick-thumb img,
.media-pick-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-pick-meta {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.media-pick-meta small { color: #8c8c8c; }
