@layer components {

.event-page {
  display: grid;
  gap: 24px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 13px;
  padding: 16px 0 4px;
}
.breadcrumbs a:hover { color: var(--primary); }
.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.event-header-left { display: grid; gap: 8px; }
.event-header-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.event-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.info-card {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.info-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.info-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.info-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.info-row .label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.info-row .value {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .info-card { padding: 0 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-row { padding: 12px 0; border-right: none !important; align-items: flex-start; }
  .info-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .info-row:last-child { border-bottom: none; }
  .info-row .label { font-size: 13px; line-height: 1.5; }
  .info-row .value {
    max-width: 68%;
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .event-date-row { padding: 12px 0 14px !important; gap: 12px !important; }
  .event-date-values { justify-content: flex-end; }
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.round-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.round-tab {
  min-height: 44px;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.round-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.round-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
#product-grid { scroll-margin-top: calc(var(--header-total, 144px) + 12px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  display: grid;
  gap: 0;
  padding: 0;
  /* 그리드 트랙(minmax(0,1fr))을 넘어 삐져나가면 말줄임 전에 글자가 잘리므로 최소폭 0 */
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91,108,255,.35);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}
.product-card[hidden] { display: none; }
.product-main-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 20px 20px 14px;
  min-width: 0;
}
.product-option-wrap {
  padding: 0 20px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--line);
}
.product-card--highlighted {
  border: 1px solid rgba(245,158,11,.5);
  background: #fffcf5;
}
.product-card--highlighted:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
}
.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  border: 1px solid rgba(180,83,9,.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.product-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.02em;
  /* 한 줄만, 길면 … (옆 뱃지는 .product-badges 로 고정)
     flex:1 1 auto 로 남는 폭을 흡수해야 말줄임이 확실히 발동한다. 이게 없으면
     제목이 뱃지를 카드 밖으로 밀어내고 overflow:hidden 에 그대로 잘린다. */
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 뱃지 묶음: 제목이 아무리 길어도 줄지 않고, AD+선예매 조합에서도 한 줄을 유지한다 */
.product-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.product-meta {
  display: grid;
  gap: 3px;
  color: var(--text-2);
  font-size: 12px;
}
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d0d5dd;
  flex-shrink: 0;
}
.product-price {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 900;
  color: var(--text);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.empty-panel {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.empty-panel .icon { font-size: 36px; margin-bottom: 8px; }
.empty-panel p { color: var(--text-2); font-size: 14px; }
.option-accordion { margin-top: -2px; margin-bottom: 12px; }
.option-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 7px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.option-toggle:hover {
  background: rgba(59,130,246,.06);
  color: #3b82f6;
  border-color: rgba(59,130,246,.25);
}
.option-toggle.open {
  border-radius: 10px 10px 0 0;
  color: #3b82f6;
  background: rgba(59,130,246,.05);
  border-color: rgba(59,130,246,.25);
}
.option-list {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.option-item:last-child { border-bottom: none; }
.option-name-group { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.option-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option-price { font-weight: 800; color: var(--text-2); flex-shrink: 0; }
.option-price.is-base { color: var(--text-3); font-weight: 600; }
.refund-tag {
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(59,130,246,.1);
  color: #3b82f6;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 0; }
  .product-main-link { padding: 16px 16px 12px; }
  .product-option-wrap { padding: 0 16px; }
  .product-card-footer { padding: 10px 16px 16px; }
  .product-price { font-size: 20px; }
}

.text-link-btn {
  background: none; border: none; padding: 0; cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
}
.chip-following {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 700; border: 1px solid #3b82f6; color: #3b82f6;
  background: rgba(59,130,246,.08); flex-shrink: 0;
}

}
