/* Birthday cakes – category page */

/* Hero */
.bc-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% -20%, rgba(184, 138, 74, .14) 0 30%, transparent 30.2%),
    radial-gradient(circle at 4% 120%, rgba(107, 26, 39, .07) 0 24%, transparent 24.2%),
    linear-gradient(100deg, #f7efe7 0%, var(--blush) 100%);
  border-bottom: 1px solid var(--line);
}
.bc-hero__inner { padding-block: 28px 40px; text-align: center; }
.bc-hero__title { font-size: clamp(34px, 4vw, 52px); }
.bc-hero__script { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--wine); margin-top: 6px; }
.bc-hero__lede { max-width: 620px; margin: 12px auto 0; }

.bc-crumbs { margin-bottom: 26px; }
.bc-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.bc-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--gold); }
.bc-crumbs a:hover { color: var(--brown); }
.bc-crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.bc-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.bc-facts li {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--muted);
}
.bc-facts strong { color: var(--ink); font-weight: 600; }
.bc-facts svg { width: 17px; height: 17px; color: var(--gold); }

/* Toolbar */
.bc-list { padding-block: 28px clamp(48px, 5vw, 72px); }
.bc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }

.bc-chips { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.bc-chip {
  height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--text); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bc-chip:hover { border-color: var(--gold); }
.bc-chip.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }

.bc-tools { display: flex; align-items: center; gap: 18px; }
.bc-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bc-count strong { color: var(--ink); font-weight: 600; }

.bc-today { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; user-select: none; }
.bc-today input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-today__switch {
  position: relative; width: 34px; height: 20px; border-radius: 99px; background: #dccfc3; transition: background-color .25s;
}
.bc-today__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease);
}
.bc-today input:checked + .bc-today__switch { background: #3f6b3a; }
.bc-today input:checked + .bc-today__switch::after { transform: translateX(14px); }
.bc-today input:focus-visible + .bc-today__switch { outline: 2px solid var(--gold); outline-offset: 2px; }

.bc-sort { position: relative; }
.bc-sort select {
  height: 38px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: 13px; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.bc-sort select:focus { outline: none; border-color: var(--brown); }
.bc-sort .chev { position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -5px; transform: rotate(135deg); pointer-events: none; color: var(--muted); }

/* Grid */
.bc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.bc-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease);
}
.bc-card:hover { box-shadow: var(--shadow-hover); }
.bc-card[hidden] { display: none; }

.bc-card__media { position: relative; overflow: hidden; background: var(--cream); }
.bc-card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.bc-card__badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted);
}
.bc-card__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bc-card__badge.is-today { color: #3f6b3a; }
.bc-card__badge.is-today::before { background: #3f6b3a; }

.bc-card__off {
  position: absolute; left: 12px; bottom: 12px; height: 24px; padding: 0 10px; border-radius: 99px;
  background: var(--wine); color: #fff; font-size: 11px; font-weight: 500; line-height: 24px; letter-spacing: .04em;
}

.bc-card__wish {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); transition: color .2s, transform .2s var(--ease);
}
.bc-card__wish svg { width: 18px; height: 18px; }
.bc-card__wish:hover { color: var(--wine); }
.bc-card__wish[aria-pressed="true"] { color: var(--wine); }
.bc-card__wish[aria-pressed="true"] svg { fill: currentColor; }
.bc-card__wish.is-pop { transform: scale(1.18); }

.bc-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.bc-card__title {
  font: 600 20px/1.25 var(--serif); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-card__title a:hover { color: var(--brown); }
.bc-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.bc-card__rating {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px;
  background: var(--cream); font-size: 11.5px; font-weight: 500; color: var(--ink);
}
.bc-card__rating i { font-style: normal; color: var(--gold); }

.bc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.bc-card__body > .bc-card__meta + .bc-card__foot { margin-top: 14px; }
.bc-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bc-card__price strong { font: 600 22px/1 var(--serif); color: var(--ink); }
.bc-card__price s { font-size: 12px; color: var(--muted); }

.bc-card__add {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--brown); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s;
}
.bc-card__add svg { width: 16px; height: 16px; }
.bc-card__add:hover { background: var(--brown-dark); }
.bc-card__add.is-added { background: #3f6b3a; }

/* Empty */
.bc-empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.bc-empty .script { font-size: 34px; color: var(--wine); margin-bottom: 6px; }
.bc-empty .btn { margin-top: 18px; }

/* CTA */
.bc-cta { background: linear-gradient(90deg, #f8e9e3, #f6e3dc 60%, #f8ece6); border-block: 1px solid var(--line); }
.bc-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 44px; }
.bc-cta .title { font-size: clamp(28px, 2.8vw, 38px); }
.bc-cta__actions { display: flex; gap: 12px; flex: none; }

/* FAQ */
.bc-faq { background: var(--cream); }
.bc-faq__inner { max-width: 860px; }
.bc-faq__list { display: grid; gap: 12px; }
.bc-faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .25s; }
.bc-faq__item[open] { border-color: rgba(184, 138, 74, .55); }
.bc-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font: 600 20px/1.3 var(--serif); color: var(--ink);
}
.bc-faq__item summary::-webkit-details-marker { display: none; }
.bc-faq__item summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.bc-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.bc-faq__item p { padding: 0 22px 20px; font-size: 14px; line-height: 1.75; color: var(--text); }

/* Tablet */
@media (max-width: 1100px) {
  .bc-grid { grid-template-columns: repeat(3, 1fr); }
  .bc-bar { flex-direction: column; align-items: stretch; }
  .bc-tools { justify-content: space-between; }
}

/* Mobile */
@media (max-width: 767px) {
  .bc-hero__inner { padding-block: 16px 28px; text-align: left; }
  .bc-crumbs { margin-bottom: 18px; }
  .bc-crumbs ol { justify-content: flex-start; }
  .bc-hero__lede { margin-inline: 0; }
  .bc-hero__script { font-size: 26px; }
  .bc-facts { justify-content: flex-start; gap: 8px; margin-top: 18px; }
  .bc-facts li { height: 32px; padding: 0 12px 0 10px; font-size: 11.5px; }
  .bc-facts svg { width: 15px; height: 15px; }

  .bc-list { padding-top: 18px; }
  .bc-bar { gap: 12px; margin-bottom: 16px; }
  .bc-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .bc-chips::-webkit-scrollbar { display: none; }
  .bc-chip { height: 34px; padding: 0 14px; font-size: 12.5px; }
  .bc-tools { gap: 10px; }
  .bc-count { display: none; }
  .bc-today { font-size: 12.5px; }
  .bc-sort select { height: 34px; font-size: 12.5px; padding: 0 32px 0 14px; }

  .bc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .bc-card { border-radius: 10px; }
  .bc-card__badge { top: 8px; left: 8px; height: 22px; padding: 0 8px; font-size: 10px; }
  .bc-card__off { left: 8px; bottom: 8px; height: 20px; padding: 0 8px; line-height: 20px; font-size: 10px; }
  .bc-card__wish { top: 6px; right: 6px; width: 32px; height: 32px; }
  .bc-card__wish svg { width: 16px; height: 16px; }
  .bc-card__body { padding: 10px 10px 12px; }
  .bc-card__title { font-size: 16px; }
  .bc-card__meta { font-size: 11px; margin-top: 4px; }
  .bc-card__rating { height: 20px; padding: 0 6px; font-size: 10.5px; }
  .bc-card__foot { padding-top: 10px; gap: 6px; }
  .bc-card__body > .bc-card__meta + .bc-card__foot { margin-top: 10px; }
  .bc-card__price { flex-direction: column; gap: 2px; }
  .bc-card__price strong { font-size: 18px; }
  .bc-card__price s { font-size: 11px; }
  .bc-card__add { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .bc-card__add span { display: none; }

  .bc-cta__inner { flex-direction: column; align-items: flex-start; padding-block: 36px; }
  .bc-cta__actions { flex-wrap: wrap; }

  .bc-faq__item summary { padding: 15px 16px; font-size: 17px; }
  .bc-faq__item p { padding: 0 16px 16px; font-size: 13px; }
}