/* Appily Thirtyfour — Honeycomb Grove catalog (unique hex cell layout) */

.page-catalog-comb {
  --comb-cream: #FEF7ED;
  --comb-warm: #FFF9F3;
  --comb-paper: #FFFEF8;
  --comb-ink: #2C2416;
  --comb-muted: #6B5E52;
  --comb-line: #E8DFD4;
  --comb-terra: #C84B31;
  --comb-olive: #5A7247;
  --comb-sage: #52796F;
  --comb-gold: #D4A017;
  --comb-amber: #E8A838;
  --comb-berry: #9B4D6A;
  --comb-tropical: #3D8B7A;
  background: var(--comb-warm);
}

.a34-comb {
  padding: 0 0 3.5rem;
}

/* ── Hero ── */
.a34-comb-hero {
  position: relative;
  padding: 2rem 0 2.25rem;
  background: var(--comb-cream);
  overflow: hidden;
}

.a34-comb-hex-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 75, 49, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(90, 114, 71, 0.1) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='%23E8DFD4' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 56px 100px;
  pointer-events: none;
}

.a34-comb-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.a34-comb-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.a34-comb-crumb a {
  color: var(--comb-sage);
  text-decoration: none !important;
}

.a34-comb-crumb a:hover {
  color: var(--comb-terra);
  text-decoration: underline !important;
}

.a34-comb-crumb span:last-child {
  color: var(--comb-muted);
}

.a34-comb-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--comb-olive);
}

.a34-comb-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--comb-ink);
}

.a34-comb-hero h1 em {
  font-style: italic;
  color: var(--comb-terra);
}

.a34-comb-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--comb-muted);
}

.a34-comb-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.a34-comb-total {
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--comb-line);
  border-radius: 12px;
  text-align: center;
  min-width: 5rem;
  box-shadow: 0 4px 14px rgba(44, 36, 22, 0.06);
}

.a34-comb-total-main {
  border-color: var(--comb-gold);
  background: linear-gradient(165deg, #fff 0%, rgba(212, 160, 23, 0.08) 100%);
}

.a34-comb-total strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--comb-ink);
  line-height: 1;
}

.a34-comb-total span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--comb-muted);
}

.a34-comb-total-ref {
  width: 100%;
  text-align: right;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--comb-sage);
}

/* ── Stage ── */
.a34-comb-stage {
  padding-top: 1.5rem;
}

.a34-comb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--comb-line);
}

.a34-comb-toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--comb-ink);
}

/* Honeycomb grid — offset masonry feel */
.a34-comb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.a34-comb-grid .a34-comb-cell:nth-child(even) {
  transform: translateY(1.25rem);
}

/* Hex cell card */
.a34-comb-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1rem;
  background: var(--comb-paper);
  border: 1px solid var(--comb-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.a34-comb-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(44, 36, 22, 0.12);
}

.a34-comb-grid .a34-comb-cell:nth-child(even):hover {
  transform: translateY(calc(1.25rem - 4px));
}

.a34-comb-cell-hex {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 88px;
  height: 88px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.12;
  pointer-events: none;
}

.a34-comb-cell-tone-1 .a34-comb-cell-hex { background: var(--comb-terra); }
.a34-comb-cell-tone-1 { border-top: 3px solid var(--comb-terra); }
.a34-comb-cell-tone-1 .a34-comb-cell-num { color: var(--comb-terra); }

.a34-comb-cell-tone-2 .a34-comb-cell-hex { background: var(--comb-olive); }
.a34-comb-cell-tone-2 { border-top: 3px solid var(--comb-olive); }
.a34-comb-cell-tone-2 .a34-comb-cell-num { color: var(--comb-olive); }

.a34-comb-cell-tone-3 .a34-comb-cell-hex { background: var(--comb-sage); }
.a34-comb-cell-tone-3 { border-top: 3px solid var(--comb-sage); }
.a34-comb-cell-tone-3 .a34-comb-cell-num { color: var(--comb-sage); }

.a34-comb-cell-tone-4 .a34-comb-cell-hex { background: var(--comb-gold); }
.a34-comb-cell-tone-4 { border-top: 3px solid var(--comb-gold); }
.a34-comb-cell-tone-4 .a34-comb-cell-num { color: var(--comb-gold); }

.a34-comb-cell-tone-5 .a34-comb-cell-hex { background: var(--comb-berry); }
.a34-comb-cell-tone-5 { border-top: 3px solid var(--comb-berry); }
.a34-comb-cell-tone-5 .a34-comb-cell-num { color: var(--comb-berry); }

.a34-comb-cell-head {
  margin-bottom: 0.85rem;
}

.a34-comb-cell-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.a34-comb-cell-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.a34-comb-cell-head h3 a {
  color: var(--comb-ink);
  text-decoration: none !important;
}

.a34-comb-cell-head h3 a:hover {
  color: var(--comb-terra);
}

.a34-comb-cell-count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--comb-muted);
}

.a34-comb-cell-img {
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  background: var(--comb-warm);
  border: 1px solid var(--comb-line);
  border-radius: 14px;
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
  min-height: 130px;
  transition: background 0.15s;
}

.a34-comb-cell:hover .a34-comb-cell-img {
  background: #fff;
}

.a34-comb-cell-img img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.a34-comb-cell-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px dashed var(--comb-line);
  display: grid;
  gap: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.a34-comb-cell-list a {
  color: var(--comb-muted);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a34-comb-cell-list a:hover {
  color: var(--comb-terra);
  text-decoration: underline;
}

.a34-comb-cell-list a::before {
  content: '◦ ';
  color: var(--comb-sage);
  font-weight: 700;
}

.a34-comb-cell-foot {
  margin-top: auto;
}

.a34-comb-cell-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--comb-ink);
  text-decoration: none !important;
  padding: 0.35rem 0.65rem;
  background: var(--comb-warm);
  border: 1px solid var(--comb-line);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.a34-comb-cell-cta:hover {
  background: var(--comb-olive);
  border-color: var(--comb-olive);
  color: #fff;
}

/* Footer */
.a34-comb-foot {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--comb-line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(44, 36, 22, 0.05);
}

.a34-comb-foot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--comb-ink);
  margin-bottom: 0.2rem;
}

.a34-comb-foot p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--comb-muted);
}

.a34-comb-foot .btn {
  border-radius: 999px;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a34-comb-hero-inner {
    grid-template-columns: 1fr;
  }

  .a34-comb-grid .a34-comb-cell:nth-child(even) {
    transform: none;
  }

  .a34-comb-grid .a34-comb-cell:nth-child(even):hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 560px) {
  .a34-comb-grid {
    grid-template-columns: 1fr;
  }

  .a34-comb-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .a34-comb-foot .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a34-comb-cell,
  .a34-comb-grid .a34-comb-cell:nth-child(even):hover {
    transition: none;
  }
}
