/* ===================================
   CARELIFT — Product Catalog Styles
   =================================== */

/* Page wrapper */
.catalog-page {
  min-height: 100vh;
  padding-top: 64px;
}

/* Condition filter tabs */
.condition-tabs {
  display: flex;
  gap: 8px;
  padding: 32px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.condition-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--warm-gray);
  background: var(--bg);
  color: var(--fg-light);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.condition-tab:hover {
  border-color: var(--border);
  color: var(--fg);
}

.condition-tab.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.condition-tab svg {
  width: 18px;
  height: 18px;
}

/* Catalog header */
.catalog-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 32px;
}

.catalog-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.catalog-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* Product grid */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product card */
.product-card {
  background: var(--bg);
  border: 2px solid var(--warm-gray);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(184, 92, 56, 0.10);
  transform: translateY(-3px);
}

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--warm-gray-light);
  display: block;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--warm-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.product-image-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--border);
  margin-bottom: 8px;
}

.product-body {
  padding: 24px;
}

.product-condition-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.product-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
}

.product-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-cta svg {
  transform: translateX(3px);
}

/* Empty state */
.catalog-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.catalog-empty p {
  font-size: 18px;
  color: var(--text-muted);
}

/* ===================================
   Product Detail Page
   =================================== */
.product-detail-page {
  min-height: 100vh;
  padding-top: 64px;
}

.product-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.product-breadcrumb a {
  color: var(--fg-light);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--fg);
}

.product-breadcrumb svg {
  width: 14px;
  height: 14px;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 80px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  border: 2px solid var(--warm-gray);
  object-fit: cover;
  background: var(--warm-gray-light);
}

.product-info h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.product-condition-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-detail-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.product-description {
  font-size: 16px;
  color: var(--fg-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

.product-specs {
  background: var(--warm-gray-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.product-specs h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 16px;
}

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

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-gray);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

.product-supplier-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 16px;
  background: var(--warm-gray-light);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.product-supplier-note strong {
  color: var(--fg-light);
}

/* Not found page */
.not-found-page {
  min-height: 100vh;
  padding: 120px 40px;
  text-align: center;
}

.not-found-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  color: var(--fg);
  margin-bottom: 16px;
}

.not-found-page p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.not-found-page a {
  color: var(--accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .condition-tabs {
    padding: 24px 24px 0;
  }
  .catalog-header {
    padding: 32px 24px 24px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
  }
  .product-breadcrumb {
    padding: 20px 24px;
  }
  .product-detail {
    padding: 0 24px 60px;
  }
}