/* ============================================================
   WearTall — Category Page Styles
   Append to the bottom of styles.css
   ============================================================ */

/* ── Split hero ─────────────────────────────────────────────── */
.split-hero {
  background: #f5f0eb;
  padding: 3rem 2rem 0;
}

.split-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
}

.split-hero-left {
  padding-bottom: 3rem;
}

.split-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1rem;
}

.split-hero-eyebrow a { color: #888; text-decoration: none; }
.split-hero-eyebrow a:hover { color: #061d42; }
.split-hero-eyebrow .sep { margin: 0 0.4rem; }

.split-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: #061d42;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.split-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.75rem;
  max-width: 460px;
}

.split-hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  max-width: 440px;
}

.split-hero-search i { color: #aaa; font-size: 1rem; flex-shrink: 0; }

.split-hero-search input {
  border: none;
  outline: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #333;
  width: 100%;
}

.split-hero-search input::placeholder { color: #aaa; }

.split-hero-right { align-self: flex-end; }

.split-hero-right .rack-image {
  transform: scale(1.7);
  transform-origin: center 60% !important;
  object-position: center center !important;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.split-hero-right img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  object-position: top center;
  display: block;
  transform-origin: top center;
  mix-blend-mode: darken;
}

/* ── Tips banner ────────────────────────────────────────────── */
.tips-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0f4fa;
  border-left: 3px solid #061d42;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  color: #333;
  line-height: 1.65;
}

.tips-banner i { color: #061d42; flex-shrink: 0; margin-top: 2px; }

/* ── Filter row ─────────────────────────────────────────────── */
.filter-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0 0;
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill-wrap {
  position: relative;
}

.filter-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #d0d5e0;
  border-radius: 50px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.filter-pill:hover { border-color: #061d42; }
.filter-pill.active { border-color: #061d42; background: #061d42; color: #fff; }
.filter-pill .pill-chevron { font-size: 0.7rem; opacity: 0.6; }

/* Dropdown */
.pill-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1.5px solid #e0e4ef;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(6,29,66,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 0.4rem 0;
}

.pill-dropdown.open { display: block; }

.pill-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
}

.pill-dropdown-item:hover { background: #f5f8ff; }
.pill-dropdown-item.selected { color: #061d42; font-weight: 600; }

/* Sort dropdown */
.sort-wrap {
  display: flex;
  align-items: center;
}

.sort-select-styled {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #d0d5e0;
  border-radius: 50px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.sort-select-styled select {
  border: none;
  outline: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #333;
  cursor: pointer;
  padding-right: 0.25rem;
}

/* ── Brand count row ────────────────────────────────────────── */
.brand-count-row {
  padding: 1rem 0 1rem;
  border-bottom: 1px solid #e4e9f2;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.87rem;
  color: #666;
}

.brand-count-row strong { color: #061d42; }

/* ── Empty state ────────────────────────────────────────────── */
#category-empty {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
  font-family: 'Inter', sans-serif;
}

#category-empty i { font-size: 2rem; display: block; margin-bottom: 0.75rem; }

/* ── Inseam table ───────────────────────────────────────────── */
#inseam-table-container { margin-top: 3rem; }
#inseam-table-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #061d42;
  margin-bottom: 0.35rem;
}

.table-note { font-size: 0.83rem; color: #777; margin-bottom: 1rem; }

.table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1.5px solid #dde3ef;
}

.inseam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
}

.inseam-table th {
  background: #061d42;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.inseam-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f3f8;
  color: #333;
}

.inseam-table tr:last-child td { border-bottom: none; }
.inseam-table tr:nth-child(even) td { background: #f8fafd; }
.inseam-table td a { color: #061d42; font-weight: 600; text-decoration: none; }
.inseam-table td a:hover { text-decoration: underline; }
.table-footnote { margin-top: 0.65rem; font-size: 0.78rem; color: #999; }

/* ── Shoe size guide ────────────────────────────────────────── */
.size-guide-section { margin-top: 3rem; }
.size-guide-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #061d42;
  margin-bottom: 1rem;
}

.size-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.size-guide-card {
  border: 1.5px solid #dde3ef;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: #fff;
}

.size-guide-card > i { font-size: 1.4rem; color: #061d42; margin-bottom: 0.5rem; display: block; }
.size-guide-card h3 { font-size: 0.9rem; font-weight: 700; color: #061d42; margin: 0 0 0.35rem; }
.size-guide-card p  { font-size: 0.83rem; color: #555; line-height: 1.6; margin: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .split-hero { padding: 2rem 1.25rem 0; }
  .split-hero-inner { grid-template-columns: 1fr; }
  .split-hero-left { padding-bottom: 1.5rem; }
  .split-hero-right img { height: 300px; object-fit: contain; object-position: top center; border-radius: 10px; }
  .filter-sort-row { flex-direction: column; align-items: flex-start; }
  .sort-wrap { align-self: flex-end; }
  .size-guide-grid { grid-template-columns: 1fr; }
}
