.pharmacy-list {
  margin-top: 1rem;
}

.pharmacy-list-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.pharmacy-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.65rem;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
}

@media (hover: hover) {
  .pharmacy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.08);
    border-color: var(--primary);
  }
}

.pharmacy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pharmacy-header h4 {
  color: var(--text-main);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
  transition: color 0.2s;
  flex: 1;
}

.pharmacy-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.notify-bell {
  background: var(--surface-muted, #f5f5f4);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

@media (hover: hover) {
  .notify-bell:hover:not(:disabled) {
    border-color: var(--primary, #2563eb);
    transform: scale(1.05);
  }
}

.notify-bell:active:not(:disabled) {
  transform: scale(0.95);
}

.notify-bell:disabled {
  opacity: 0.55;
  cursor: progress;
}

.notify-bell--on {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}

.notify-bell--locked {
  opacity: 0.55;
}

@media (hover: hover) {
  .notify-bell--locked:hover:not(:disabled) {
    border-color: var(--text-muted, #78716c);
    transform: scale(1.05);
  }
}

.notify-error {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #b91c1c;
}

.pharmacy-distance {
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (hover: hover) {
  .pharmacy-card:hover .pharmacy-header h4 {
    color: var(--primary);
  }
}

.pharmacy-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pharmacy-address,
.pharmacy-phone {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}

.pharmacy-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  padding: 0.25rem 0;
}

.pharmacy-hours-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.pharmacy-hours--open {
  color: var(--accent, #047857);
}

.pharmacy-hours--closed {
  color: var(--text-muted);
}

.pharmacy-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stock {
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stock.in-stock {
  background: rgba(4, 120, 87, 0.12);
  color: var(--accent);
}

.stock.low-stock {
  background: rgba(180, 83, 9, 0.12);
  color: var(--accent-warm);
}

.stock.out-of-stock {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.loading-pharmacies,
.no-pharmacies {
  text-align: center;
  padding: 2.75rem 1.5rem;
  background: var(--surface-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .pharmacy-grid {
    grid-template-columns: 1fr;
  }
}
