/* Thematic Header Section */
.thematic-header {
  padding: 0 1rem;
  text-align: center;
}
.thematic-header .motif {
  stroke: var(--accent-gold);
  margin-bottom: 0.5rem;
}
.header-quote {
  font-family: var(--font-heading);
  color: var(--primary-maroon);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.header-translation {
  font-family: var(--font);
  color: #777;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}

/* ===== Search Section ===== */
.search-section {
  padding: 1.5rem 0 0.5rem 0;
}
.search-section .container-custom {
  position: relative;
  max-width: 600px;
}
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: #999;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.2s;
}
.search-input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  border: 2px solid #e9e1d4;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--dark-text);
  background-color: #fffcf7;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.search-wrapper:focus-within .search-icon {
  color: var(--accent-gold);
}
.search-input::placeholder {
  color: #aaa;
  font-size: 0.85rem;
}
.search-clear {
  position: absolute;
  right: 14px;
  color: #aaa;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s;
}
.search-clear:hover {
  color: var(--primary-maroon);
  background: #fdf2f2;
}

/* ===== Search Results Dropdown ===== */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e9e1d4;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
}
.search-results-section {
  padding: 0.5rem 0;
}
.search-results-heading {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.75rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.search-results-heading i {
  font-size: 0.7rem;
  color: var(--accent-gold);
}
.search-results-list {
  display: flex;
  flex-direction: column;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--dark-text);
  border-radius: 10px;
  transition: background 0.15s;
}
.search-result-item:hover {
  background: #fdf8ef;
}
.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f0e8;
}
.search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 1.1rem;
}
.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.search-result-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  font-size: 0.7rem;
  color: #999;
}
.search-result-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-maroon);
  white-space: nowrap;
}
.search-no-results {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #999;
}
.search-no-results i {
  font-size: 1.5rem;
  color: #ddd;
  margin-bottom: 0.5rem;
}
.search-no-results p {
  margin: 0;
  font-size: 0.85rem;
}

/* ===== Category Grid ===== */
.categories-section {
  padding: 0.5rem 0 3rem 0;
}
.category-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #eae3d6;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--dark-text);
  transition: all 0.3s ease;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(106, 27, 27, 0.12);
  border-color: var(--accent-gold);
}
.category-card-image {
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf8ef, #f5ede0);
}
.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-image img {
  transform: scale(1.05);
}
.category-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-maroon), #8b2b2b);
}
.category-card-placeholder i {
  font-size: 2.8rem;
  color: var(--accent-gold);
}
.category-card-body {
  padding: 1rem 1.2rem;
  text-align: center;
}
.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-maroon);
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-card-desc {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

/* ===== Category Detail Header (kits_by_category.html) ===== */
.category-detail-header {
  padding: 0.5rem 0 1rem 0;
}
.breadcrumb-nav {
  margin-bottom: 1rem;
}
.breadcrumb-nav a {
  color: var(--primary-maroon);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.breadcrumb-nav a:hover {
  color: var(--accent-gold);
}
.breadcrumb-nav a i {
  font-size: 0.75rem;
}
.category-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fdf8ef, #f5ede0);
  border-radius: 16px;
  border: 1px solid #eae3d6;
}
.category-hero-image {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-hero-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-maroon);
  margin: 0 0 0.3rem 0;
}
.category-hero-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.4rem 0;
  line-height: 1.5;
}
.category-hero-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-maroon);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* Kits Section */
.kits-section {
  padding: 1rem 0 4rem 0;
  background-color: #ffffff;
}

/* Kit Cards */
.kit-card {
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.kit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}
.kit-card .card-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.kit-card .card-body {
  padding: 1.25rem;
  flex-grow: 1;
}
.kit-card .card-title {
  font-family: var(--font-heading);
  color: var(--primary-maroon);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.kit-card .card-text {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.highlight-item,
.highlight-more {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}
.highlight-item {
  background-color: #fff8e7;
  color: #8c7329;
  border: 1px solid #f0e2be;
}
.highlight-more {
  background-color: #f1f1f1;
  color: #555;
  border: 1px solid #e0e0e0;
}
.kit-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #fafafa;
  border-top: 1px solid #e9e9e9;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}
.price-tag {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-maroon);
}
.btn-secondary {
  padding: 0.8rem 1.5rem;
  font-weight: 600;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #999;
}
.empty-state-icon {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-family: var(--font-heading);
  color: var(--primary-maroon);
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .thematic-header {
    padding: 0 1rem;
  }
  .thematic-header .motif {
    margin-bottom: 0.2rem;
  }
  .header-quote {
    font-size: 1rem;
  }
  .header-translation {
    font-size: 0.8rem;
  }
  .category-card-image {
    height: 130px;
  }
  .category-card-title {
    font-size: 0.95rem;
  }
  .search-input {
    font-size: 0.85rem;
    padding: 0.7rem 2.2rem 0.7rem 2.5rem;
  }
  .category-hero {
    flex-direction: column;
    text-align: center;
  }
  .category-hero-image {
    width: 80px;
    height: 80px;
  }
  .category-hero-title {
    font-size: 1.2rem;
  }
}
