/* ===================================
   Design Tokens - Airbnb Inspired Style
   따뜻하고 미니멀한 여행 느낌
   =================================== */
:root {
  /* Colors - 따뜻한 톤 */
  --color-bg: #FDFBF7;
  --color-card: #FFFFFF;
  --color-card-hover: #FAF8F5;
  --color-card-checked: #F7F5F2;

  /* Text - 따뜻한 다크 */
  --color-text: #222222;
  --color-text-secondary: #717171;
  --color-text-muted: #B0B0B0;
  --color-text-checked: #AAAAAA;

  /* Brand - 코랄 (에어비앤비 스타일) */
  --color-primary: #E07A5F;
  --color-primary-light: #FDF0ED;
  --color-primary-dark: #C96A52;

  /* Secondary - 틸 (체크 완료) */
  --color-success: #2A9D8F;
  --color-success-light: #E8F5F3;

  /* Borders - 따뜻한 그레이 */
  --color-border: #DDDDDD;
  --color-border-light: #EBEBEB;

  /* Ad Placeholder */
  --color-ad-bg: #FAF8F5;
  --color-ad-border: #E0DDD8;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Typography */
  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Touch Target */
  --touch-target: 48px;

  /* Shadows - 부드러운 그림자 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* PC Layout */
  --content-max-width: 720px;
  --sidebar-width: 200px;
}

/* ===================================
   Base
   =================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===================================
   PC Layout - 3단 구조
   =================================== */
.page-wrapper {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

/* ===================================
   Header - 깔끔한 흰색 (에어비앤비 스타일)
   =================================== */
.header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--spacing-md) var(--spacing-xl);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-icon {
  font-size: 28px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.header-hook {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin: 0;
}

/* ===================================
   Sidebars (PC) - Quick Nav & Detail
   =================================== */
.sidebar-left,
.sidebar-right {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  /* 스크롤바 숨김 (깔끔하게) */
  scrollbar-width: none;
}

.sidebar-left::-webkit-scrollbar,
.sidebar-right::-webkit-scrollbar {
  display: none;
}

.sidebar-right {
  width: var(--sidebar-width);
  /* Reset to standard width (200px) for symmetry */
}

/* Quick Nav Styling */

.sidebar-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.5px;
}

.nav-list {
  list-style: none;
}

.nav-item {
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  background: var(--color-card-hover);
  color: var(--color-text);
}

.nav-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

/* Detail Panel Styling */
.detail-panel {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  min-height: 200px;
}

.detail-placeholder {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--spacing-xl) 0;
}

.detail-icon {
  font-size: 40px;
  display: block;
  margin-bottom: var(--spacing-md);
  animation: bounceLeft 1s infinite alternate;
}

@keyframes bounceLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-10px);
  }
}

.detail-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

.detail-item-icon {
  font-size: 24px;
}

.detail-item-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.detail-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* Right Sidebar Ad Styling */
.ad-slot-sidebar {
  margin-top: var(--spacing-lg);
}


/* ===================================
   Main Content
   =================================== */
.main-content {
  flex: 1;
  max-width: var(--content-max-width);
  min-width: 0;
}

/* ===================================
   Ad Slots
   =================================== */
.ad-slot {
  padding: var(--spacing-sm) 0;
}

.ad-placeholder {
  background: var(--color-ad-bg);
  border: 1px dashed var(--color-ad-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  color: transparent;
  /* 텍스트 숨김 */
  font-size: 12px;
  user-select: none;
  /* 드래그 방지 */
}

/* 개발 모드에서만 광고 영역 표시 (필요시 body에 debug-ads 클래스 추가) */
body.debug-ads .ad-placeholder {
  color: var(--color-text-muted);
  border-style: solid;
}


.ad-slot-top {
  margin-bottom: var(--spacing-md);
}

.ad-slot-bottom {
  display: none;
}

/* ===================================
   Preset Tabs - 단색 미니멀
   =================================== */
.preset-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  background: var(--color-card);
  padding: var(--spacing-xs);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.preset-tab {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--touch-target);
}

.preset-tab:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.preset-tab.active {
  background: var(--color-primary);
  color: white;
}

/* ===================================
   Preset Info & Progress
   =================================== */
.preset-info {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.preset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.preset-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.preset-days {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  border: 1px solid var(--color-border-light);
}

.share-btn-mini {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: var(--radius-md);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.share-btn-mini:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Progress Bar - 단색 */
.progress-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 50px;
  text-align: right;
}

/* ===================================
   Toast
   =================================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ===================================
   Checklist Sections - 카드 스타일
   =================================== */
.checklist-section {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* Ensures border-left curves correctly */
}

/* Specific borders - kept for color coding inside the card */
.section-header.essential {
  border-left: 5px solid var(--color-primary);
}

.section-header.recommended {
  border-left: 5px solid var(--color-success);
}

.section-header.quality-of-life {
  border-left: 5px solid #F4A261;
}

.section-header.custom {
  border-left: 5px solid var(--color-text-secondary);
}

.section-header.tips {
  border-left: 5px solid #9C27B0;
  /* Notion Purple Accent */
  /* Remove transparency overrides to match other headers */
}



.section-header .section-description {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Tips Section - 읽기 전용 스타일 */
.tips-section {
  background: linear-gradient(135deg, #F8F5FF 0%, #FDF5F8 100%);
}

.tips-items {
  padding: var(--spacing-sm) var(--spacing-lg);
}

.tip-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-content {
  flex: 1;
}

.tip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tip-description {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.section-count {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===================================
   Checklist Items - 2열 그리드
   =================================== */
.checklist-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  user-select: none;
}

.checklist-item:nth-child(2n) {
  border-right: none;
}

/* Default: All items have bottom border */
.checklist-item {
  border-bottom: 1px solid var(--color-border-light);
}



/* Even Count: Last 2 items have no bottom border */
.checklist-items[data-grid-parity="even"] .checklist-item:nth-last-child(-n+2) {
  border-bottom: none;
}

/* Odd Count: Only the LAST item has no bottom border */
.checklist-items[data-grid-parity="odd"] .checklist-item:last-child {
  border-bottom: none;
}

/* Note: In odd count, the 2nd to last item (on right) KEEPS its bottom border */

.checklist-item:hover {
  background: var(--color-card-hover);
}

.checklist-item:active {
  background: var(--color-bg);
}

/* Checked State */
.checklist-item.checked {
  background: var(--color-card-checked);
}

.checklist-item.checked .item-name {
  text-decoration: line-through;
  color: var(--color-text-checked);
}

/* Checkbox - 원형, 단색 */
.item-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
  background: var(--color-card);
}

.checklist-item:hover .item-checkbox {
  border-color: var(--color-primary);
}

.checklist-item.checked .item-checkbox {
  background: var(--color-success);
  border-color: var(--color-success);
}

.item-checkbox::after {
  content: '✓';
  color: white;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.checklist-item.checked .item-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

/* Item Content */
.item-content {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  transition: all 0.2s ease;
}

/* Toggle Button */
.item-toggle {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.item-toggle:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.item-toggle.expanded {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Description */
.item-description {
  display: none;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px dashed var(--color-border-light);
}

.item-description.show {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delete Button */
.item-delete {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.item-delete:hover {
  background: #FFEBEE;
  color: #D32F2F;
}

/* ===================================
   Ad Slot Middle
   =================================== */
.ad-slot-middle {
  margin: var(--spacing-lg) 0;
}

/* ===================================
   Add Item Wrapper & Inline Form
   =================================== */
.add-item-wrapper {
  margin-top: var(--spacing-lg);
}

.add-item-form {
  background: var(--color-card);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  animation: slideDown 0.2s ease;
}

.add-item-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  margin-bottom: var(--spacing-sm);
  transition: all 0.2s;
}

.add-item-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-card);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.add-item-input::placeholder {
  color: var(--color-text-muted);
}

.add-item-form-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.add-item-submit {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-item-submit:hover {
  background: var(--color-primary-dark);
}

.add-item-cancel {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-item-cancel:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text);
}

/* Tips Section Styling (Notion Callout Style) */
/* Tips Section Styling (Notion Callout Style) */
.checklist-section.tips-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: var(--spacing-2xl);
}

.tips-section .section-title {
  /* Resetting specific overrides to match standard header */
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.tips-section .section-description {
  display: block;
  margin-left: 4px;
  margin-top: 4px;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
  font-size: 14px;
}


.tips-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  background: #F7F7F5;
  /* Notion Light Gray */
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Very subtle border */
}

.tip-item:hover {
  background: #EFEFED;
  /* Slightly darker on hover */
}

.tip-icon {
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
}

.tip-content {
  flex: 1;
}

.tip-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.tip-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}



/* Add Button Wrapper */
.add-item-wrapper {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px dashed var(--color-border);
}

.add-item-container {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.add-item-btn {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-item-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.reset-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-card);
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-btn:hover {
  border-color: #D32F2F;
  color: #D32F2F;
}

/* ===================================
   Footer
   =================================== */
.footer {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ===================================
   Mobile 반응형
   =================================== */
@media (max-width: 1024px) {

  .sidebar-left,
  .sidebar-right {
    display: none;
  }

  .page-wrapper {
    padding: var(--spacing-md);
  }

  .ad-slot-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    z-index: 90;
    padding: var(--spacing-sm);
  }

  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .checklist-items {
    grid-template-columns: 1fr;
  }

  .checklist-item {
    border-right: none;
  }

  .checklist-item:last-child {
    border-bottom: none;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .header {
    padding: var(--spacing-md);
  }

  .logo {
    font-size: 18px;
  }

  .preset-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .preset-tab {
    white-space: nowrap;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }

  .preset-title {
    font-size: 20px;
  }

  .preset-info {
    padding: var(--spacing-md);
  }

  .add-item-container {
    flex-direction: column;
  }
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   Contenteditable
   =================================== */
[contenteditable] {
  outline: none;
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  margin: -2px -4px;
  transition: background 0.2s;
}

[contenteditable]:hover {
  background: var(--color-primary-light);
}

[contenteditable]:focus {
  background: white;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* ===================================
   Recommended Product Card
   =================================== */
.recommendation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: default;
}

.recommendation-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.rec-image {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
}

.rec-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.rec-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.rec-btn {
  padding: 6px 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.rec-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

@media (max-width: 480px) {
  .rec-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

}

/* Detail Panel Recommendation Override */
.detail-panel .recommendation-card {
  border: 1px solid var(--color-primary-light);
  background: var(--color-bg);
  flex-direction: column;
  align-items: flex-start;
}

.detail-panel .rec-image {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  margin-right: 0;
}

.detail-panel .rec-info {
  margin-bottom: var(--spacing-sm);
  width: 100%;
}

/* Footer Reset Button */
.reset-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border-light);
}

.reset-btn-text {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.reset-btn-text:hover {
  color: #D32F2F;
}