.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4vh auto;
  padding: 0;
}

.extras-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f7f7;
  padding: 2vh 1.6vh;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.extras-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.extras-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1vh;
  animation: zoomIn 0.8s ease-out;
}

.extras-card p {
  margin: 0.25rem 0;
  font-size: 2vh;
  color: #444;
  font-family: "Atma", system-ui;
  font-weight: bold;
}

.extras-card button {
  width: 100%;
  margin-top: 1vh;
  padding: 0.6em 1em;
  font-family: "Atma", system-ui;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.extras-card button:hover {
  background: #0056b3;
}

.section-divider {
  border: none;
  height: 1.5px;
  background-color: rgba(0, 0, 0, 0.5);
  margin: 3rem 0;
}

/* --- Pills nav container --- */
.subcat-nav {
  /* keep it simple, non-sticky; change to position: sticky; top: 0; if you want */
  margin: 1rem 0 0.5rem;
}

.pills-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scroll-snap-type: x proximity;
}

/* --- Pills (with hard-coded colors) --- */
.pill {
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid #e8dccb;           /* was var(--c-border) */
  background: #ffffff;                  /* was #fff */
  color: #2b211e;                       /* was var(--c-text) */
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06); /* was var(--shadow-sm) */
  color: #3b2a26;                             /* was var(--c-cocoa) */
  border-color: #e1d4be;
}

.pill.is-active {
  background: linear-gradient(180deg, #ffffff, #fff8ef);
  border-color: #c9a15b;   /* was var(--c-gold) */
  color: #3b2a26;          /* was var(--c-cocoa) */
  box-shadow: 0 6px 16px rgba(201, 161, 91, .18);
}

/* Optional: ensure headings don't hide under a sticky header if you add one later */
.subcategory-title {
  scroll-margin-top: 100px;  /* adjust if you use a sticky header of a different height */
}

@media only screen and (max-width: 768px) {
  .extras-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
  }

  .extras-card img {
    max-height: 160px;
  }

  .extras-card p {
    font-size: 1.8vh;
  }
}
