/* ====================
   COLLECTION PAGE STYLES
   ==================== */

/* ==================== HEADER ==================== */
.collection-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 4vw, 48px);
}

.collection-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* ==================== SEARCH ==================== */
.nav-search-wrap {
  flex: 1;
  max-width: 320px;
  margin: 0 24px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--fg);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.nav-search-input::placeholder {
  color: var(--fg-muted);
  font-style: italic;
}

.nav-search-input:focus {
  border-color: var(--accent);
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(45, 35, 32, 0.1);
  overflow: hidden;
  display: none;
  z-index: 200;
}

.nav-search-results.is-open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

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

.search-result-item:hover {
  background: var(--bg-warm);
}

.search-result-img {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.search-no-results {
  padding: 14px;
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  text-align: center;
}

/* ==================== HERO ==================== */
.collection-hero {
  background: var(--bg-warm);
  padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.collection-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.collection-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.collection-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}

.collection-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ==================== PRODUCT GRID ==================== */
.collection-grid-section {
  padding: var(--section-pad) clamp(24px, 4vw, 48px);
}

.collection-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.collection-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
  font-style: italic;
}

/* ==================== PRODUCT CARD ==================== */
.product-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 35, 32, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(45, 35, 32, 0.1);
  transform: translateY(-2px);
}

.product-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-warm);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-description {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 20px;
}

.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  min-width: 64px;
  text-align: left;
}

.inquiry-price {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--fg-muted);
  font-style: italic;
}

.product-form {
  flex-shrink: 0;
}

.btn-cart,
.btn-inquire {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-cart {
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
}

.btn-cart:hover {
  background: #B5633F;
}

.btn-cart:active {
  transform: scale(0.97);
}

.btn-inquire {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.btn-inquire:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-inquire:active {
  transform: scale(0.97);
}

/* ==================== FOOTER (shared with theme.css) ==================== */
/* Footer styles are inherited from theme.css */

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
  }

  .product-info {
    padding: 20px;
  }

  .product-name {
    font-size: 20px;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .product-price {
    text-align: center;
  }

  .product-form {
    width: 100%;
  }

  .btn-cart,
  .btn-inquire {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-hero {
    padding: 48px 24px;
  }

  .collection-headline {
    font-size: 36px;
  }

  .product-image-wrap {
    aspect-ratio: 4 / 3;
  }
}