.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 64rem;
  margin: 2rem auto 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--stone-700);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(28, 25, 23, 0.03);
}

.pill .icon { color: var(--stone-500); }

.pill:hover {
  border-color: var(--stone-300);
  background: #fafaf9;
}

.pill.is-active {
  border-color: var(--green-line);
  background: var(--green-pill);
  color: var(--green-ink);
  font-weight: 600;
  transform: scale(1.02);
}

.pill.is-active .icon { color: #2e5220; }

.panel {
  padding: 1.25rem;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--stone-100);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.panel__title h3 {
  margin: 0;
  font-size: 1rem;
}

.count {
  color: var(--stone-400);
  font-size: 0.75rem;
  font-weight: 500;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-mid);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-btn:hover { color: #385e2b; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--stone-100);
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.product-card:hover {
  border-color: var(--stone-200);
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.08);
  transform: translateY(-4px);
}

.wish {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: #3e682e;
}

.wish:hover { background: #dcecd8; }

.wish.is-on {
  background: #fff1f2;
  color: var(--rose);
  transform: scale(1.05);
}

.product-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.5rem 0 1rem;
  background: var(--page);
}

.product-card:hover .product-card__media { background: #f6f2ea; }

.quick-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 25, 23, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.product-card:hover .quick-view { opacity: 1; }

.quick-view span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--stone-800);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08);
  transform: translateY(0.4rem);
  transition: transform 0.2s;
}

.product-card:hover .quick-view span { transform: none; }

.product-card__name {
  width: 100%;
  min-height: 2.5rem;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
  text-transform: lowercase;
}

.product-card__name:hover { color: #3e682e; }

.product-card__price {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--green-mid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-cart:hover { background: var(--green-hover); }

.btn-cart:disabled {
  border: 1px solid var(--stone-200);
  background: #fff;
  color: var(--stone-400);
  opacity: 0.85;
}

.carousel { position: relative; }

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--stone-800);
  color: #fff;
  box-shadow: 0 8px 16px rgba(28, 25, 23, 0.18);
  transform: translateY(-50%);
}

.carousel__btn:hover { background: #1c1917; }
.carousel__btn:active { transform: translateY(-50%) scale(0.9); }
.carousel__btn--prev { left: -0.75rem; }
.carousel__btn--next { right: -0.75rem; }

.month-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.25rem;
}

.month-track .product-card { height: 100%; }

.month-item { flex: 0 0 13rem; }

@media (min-width: 640px) {
  .pill { font-size: 0.875rem; }
  .panel { padding: 2rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .month-item { flex-basis: 15rem; }
  .carousel__btn--prev { left: -1.25rem; }
  .carousel__btn--next { right: -1.25rem; }
  .month-track { gap: 1.25rem; }
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .month-item { flex-basis: 16rem; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}
