/* ==========================================================================
   오솔킹 추천 장비 가이드 (Gear Recommendations) 전용 스타일
   ========================================================================== */

.gear-page {
  padding-top: 24px;
}

@media (max-width: 760px) {
  .gear-page {
    padding-top: 56px;
  }
}

/* 상단 뒤로가기 버튼 */
.header-nav-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   광고 및 제휴 문의 상단 배너
   -------------------------------------------------------------------------- */
.ad-notice-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-notice-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.ad-icon-box {
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.ad-notice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-notice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-badge {
  background: #f59e0b;
  color: #78350f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.ad-notice-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.ad-notice-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  word-break: keep-all;
}

.ad-notice-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ad-inquiry {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid #3b82f6;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ad-inquiry:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   카테고리 & 아이템 선택 네비게이션
   -------------------------------------------------------------------------- */
.gear-selector-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(39, 104, 200, 0.08);
  border: 1px solid #e2e8f0;
}

.category-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-pill:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.category-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.item-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.item-pill {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.item-pill.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #2563eb;
}

/* --------------------------------------------------------------------------
   선택된 아이템 정보 & 가이드 헤더
   -------------------------------------------------------------------------- */
.item-showcase-header {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(39, 104, 200, 0.08);
  border-left: 5px solid #2563eb;
}

.showcase-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.showcase-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.showcase-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.03em;
}

.showcase-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 12px;
}

.showcase-guide-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-text {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  word-break: keep-all;
}

.guide-text strong {
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   추천 제품 그리드 (Product Cards)
   -------------------------------------------------------------------------- */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.section-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-count-badge {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.product-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(39, 104, 200, 0.06);
  transition: all 0.22s ease;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-tier-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.tier-프리미엄, .tier-하이엔드 {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tier-베스트셀러, .tier-국민아이템, .tier-스테디셀러 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tier-가성비추천 {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.tier-울트라라이트 {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.product-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.product-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-weight {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-features-list li {
  font-size: 0.78rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-features-list li::before {
  content: "✓";
  color: #2563eb;
  font-weight: 900;
  font-size: 0.75rem;
}

.product-summary {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  word-break: keep-all;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
}

.product-card-action {
  margin-top: auto;
  padding-top: 6px;
}

.btn-product-buy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.product-card:hover .btn-product-buy {
  background: #2563eb;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   광고 및 구매 문의 팝업 모달
   -------------------------------------------------------------------------- */
.ad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ad-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.ad-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: min(440px, 92vw);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.ad-modal-overlay.is-active .ad-modal-box {
  transform: scale(1);
}

.ad-modal-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-modal-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.ad-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ad-modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ad-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.ad-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-modal-target-item {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 700;
  text-align: center;
}

.ad-modal-message {
  margin: 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
  word-break: keep-all;
  text-align: center;
}

.ad-modal-contact-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.contact-card-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-email-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-copy-email {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-copy-email:hover {
  background: #1d4ed8;
}

.ad-modal-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close-action:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* 토스트 메시지 */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 4000;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media print {
  .header-nav-row, .ad-notice-banner, .gear-selector-card, .btn-product-buy { display: none !important; }
}
