:root {
  --til-bg: #FFFFFF;
  --til-text: #000000;
  --til-text-secondary: #86868b;
  --til-border: #EAEAEA;
}

body.dark-mode {
  --til-bg: #1c1c1e;
  --til-text: #f5f5f7;
  --til-text-secondary: #a0a0a0;
  --til-border: #333333;
}

body.light-mode {
  --til-bg: #FFFFFF;
  --til-text: #000000;
  --til-text-secondary: #86868b;
  --til-border: #EAEAEA;
}


/* Things I Love - Premium Section */
.til-view {
  width: 100%;
  height: 100%;
  background: var(--til-bg);
  color: var(--til-text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: var(--font-family);
}

/* Header */
.til-header {
  padding: 48px 48px 24px 48px;
  flex-shrink: 0;
}

.til-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.til-description {
  font-size: 15px;
  color: var(--til-text-secondary);
  margin: 0 0 24px 0;
  max-width: 600px;
  line-height: 1.5;
  font-weight: 400;
}

.til-filters {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--til-border);
  padding-bottom: 12px;
}

.til-filter-btn {
  background: none;
  border: none;
  padding: 0 0 4px 0;
  font-size: 14px;
  color: var(--til-text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--duration-micro) ease;
  font-weight: 500;
}

.til-filter-btn:hover {
  color: var(--til-text);
}

.til-filter-btn.active {
  color: var(--til-text);
}

.til-filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px; /* Align with the border-bottom of .til-filters */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--til-text);
}

/* Grid */
.til-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 24px 48px 48px 48px;
}

/* Card */
.til-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

.til-card-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
  box-sizing: border-box;
}

.til-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.til-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 0 0;
}

.til-brand {
  font-size: 10px;
  color: var(--til-text);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.til-name {
  font-size: 11px;
  color: var(--til-text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
